Skip to content

Instantly share code, notes, and snippets.

@edBaev
Created May 30, 2013 06: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 edBaev/5676127 to your computer and use it in GitHub Desktop.
Save edBaev/5676127 to your computer and use it in GitHub Desktop.
Manifest
<receiver android:name=".util.PushReceiver" >
</receiver>
<service android:name="com.buyfolio.services.HandlerPushRegistration" >
</service>
<!-- REQUIRD for Urban Airship GCM -->
<receiver android:name="com.urbanairship.CoreReceiver" />
<receiver
android:name="com.urbanairship.push.GCMPushReceiver"
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" />
<!-- MODIFICATION REQUIRED - Use your package name as the category -->
<category android:name="com.buyfolio" />
</intent-filter>
<!--   REQUIRED for detecting when the application is upgraded so it can request a new GCM ID -->
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment