AndroidManifest.xml 2.53 KB
Newer Older
Amit Davidi's avatar
Amit Davidi committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.wix.reactnativenotifications">

    <!--
     Permissions required for enabling GCM.
     -->
    <permission
        android:name="${applicationId}.permission.C2D_MESSAGE"
        android:protectionLevel="signature" />
    <uses-permission android:name="${applicationId}.permission.C2D_MESSAGE" />

14 15 16
    <!-- Ref: http://stackoverflow.com/questions/13602190/java-lang-securityexception-requires-vibrate-permission-on-jelly-bean-4-2 -->
    <uses-permission android:name="android.permission.VIBRATE" android:maxSdkVersion="18" />

Amit Davidi's avatar
Amit Davidi committed
17 18
    <application>

19
        <!--
Amit Davidi's avatar
Amit Davidi committed
20
         A proxy-service that gives the library an opportunity to do some work before launching/resuming the actual application task.
21
         -->
Amit Davidi's avatar
Amit Davidi committed
22
        <service android:name=".core.ProxyService"/>
23

Amit Davidi's avatar
Amit Davidi committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
        <!--
         Google's ready-to-use GcmReceiver.
         1. Awaits actual GCM messages (e.g. push notifications) and invokes the GCM service with the concrete content.
         2. Awaits instance-ID/token refresh requests from the GCM and invokes the Instance-ID listener service.
         -->
        <receiver
            android:name="com.google.android.gms.gcm.GcmReceiver"
            android:exported="true"
            android:permission="com.google.android.c2dm.permission.SEND">
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                <category android:name="${applicationId}" />
            </intent-filter>
        </receiver>
        <!-- Dispatched by the GcmReceiver when messages are received. -->
        <service
41
            android:name="com.wix.reactnativenotifications.gcm.GcmMessageHandlerService"
Amit Davidi's avatar
Amit Davidi committed
42 43 44 45 46 47 48
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            </intent-filter>
        </service>
        <!-- Dispatched by the GcmReceiver. Starts the designated refresh-handling service. -->
        <service
49
            android:name=".gcm.GcmInstanceIdListenerService"
Amit Davidi's avatar
Amit Davidi committed
50 51 52 53 54 55
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.android.gms.iid.InstanceID" />
            </intent-filter>
        </service>
        <service
56
            android:name=".gcm.GcmInstanceIdRefreshHandlerService"
Amit Davidi's avatar
Amit Davidi committed
57 58 59 60
            android:exported="false" />
    </application>

</manifest>