AndroidManifest.xml 2.31 KB
Newer Older
Amit Davidi's avatar
Amit Davidi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?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" />

    <application>

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

Amit Davidi's avatar
Amit Davidi committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
        <!--
         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
38
            android:name="com.wix.reactnativenotifications.gcm.GcmMessageHandlerService"
Amit Davidi's avatar
Amit Davidi committed
39 40 41 42 43 44 45
            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
46
            android:name=".gcm.GcmInstanceIdListenerService"
Amit Davidi's avatar
Amit Davidi committed
47 48 49 50 51 52
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.android.gms.iid.InstanceID" />
            </intent-filter>
        </service>
        <service
53
            android:name=".gcm.GcmInstanceIdRefreshHandlerService"
Amit Davidi's avatar
Amit Davidi committed
54 55 56 57
            android:exported="false" />
    </application>

</manifest>