Created
February 23, 2016 15:56
-
-
Save sessionm-docs/8206040bb2bf7a68b0d3 to your computer and use it in GitHub Desktop.
MMC - Enable Push
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- GCM requires a Google account. --> | |
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
<!-- Keeps the processor from sleeping when a message is received. --> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<!-- Creates a custom permission so only this app can receive its messages. NOTE: the permission *must* be called PACKAGE.permission.C2D_MESSAGE, where PACKAGE is the application's package name.--> | |
<permission android:name="com.sessionm.entouragedemo.permission.C2D_MESSAGE" | |
android:protectionLevel="signature" /> | |
<uses-permission android:name="com.sessionm.entouragedemo.permission.C2D_MESSAGE" /> | |
<!-- This app has permission to register and receive data message. --> | |
<uses-permission | |
android:name="com.google.android.c2dm.permission.RECEIVE" /> | |
<!-- Add receiver inside application block --> | |
<application> | |
<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"/> | |
<category android:name="com.sessionm.entouragedemo"/> | |
</intent-filter> | |
</receiver> | |
<!-- GCM listener service --> | |
<service | |
android:name="com.sessionm.api.enterprise.GCMListenerService" | |
android:exported="false"> | |
<intent-filter> | |
<action android:name="com.google.android.c2dm.intent.RECEIVE"/> | |
</intent-filter> | |
</service> | |
<!-- GCM InstanceID service to update registration ID --> | |
<service | |
android:name="com.sessionm.api.enterprise.GCMInstanceIDListenerService" | |
android:exported="false"> | |
<intent-filter> | |
<action android:name="com.google.android.gms.iid.InstanceID"/> | |
</intent-filter> | |
</service> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment