Skip to content

Instantly share code, notes, and snippets.

@nillsondg
Last active September 28, 2017 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nillsondg/240df0e3405bf39179508abebe190b28 to your computer and use it in GitHub Desktop.
Save nillsondg/240df0e3405bf39179508abebe190b28 to your computer and use it in GitHub Desktop.
AndroidManifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ru.evendate.android">
...
<!-- gcm_permissions -->
<uses-permission android:name="ru.evendate.android.c2dm.permission.RECEIVE" />
<application
android:name=".EvendateApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
...
<service
android:name=".sync.EvendateSyncService"
android:exported="false">
<intent-filter>
<action android:name="android.content.SyncAdapter" />
</intent-filter>
<meta-data
android:name="android.content.SyncAdapter"
android:resource="@xml/evendate_sync_adapter" />
</service>
<!-- Google Cloud messaging -->
<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="ru.getlect.evendate.evendate.gcm" />
</intent-filter>
</receiver>
<service
android:name=".gcm.EvendateGCMListenerService"
android:exported="false" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<service
android:name=".gcm.EvendateInstanceIDListener"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.gms.iid.InstanceID"/>
</intent-filter>
</service>
<service
android:name=".gcm.RegistrationGCMIntentService"
android:exported="false">
</service>
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment