...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.appoxee.testapp" ><app package>"> <permission android:name="com.appoxee.testapp.<app package>.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="com.appoxee.testapp.<app package>.permission.C2D_MESSAGE" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > ... <!-- This app uses GooglePlayServices.jar --> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> ... <!-- REQUIRED for C2DM --> <service android:name="com.appoxee.gcm.PlayIntentService" /> <receiver android:name="com.appoxee.gcm.PlayBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND" > <!-- Receive the actual message --> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <category android:name="com.appoxee.testapp<app package>" /> </intent-filter> <!-- Receive the registration id --> <intent-filter> <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> <category android:name="com.appoxee.testapp<app package>" /> </intent-filter> </receiver> ... </application> </manifest> |
9. Please add the following code to the activity which implements AppoxeeObserver :
...