Created
February 22, 2017 18:03
-
-
Save casagrandebruno/c247bcdb11f5c63f177ffed09b1869c6 to your computer and use it in GitHub Desktop.
Back4App - Example of Android App for Push Notifications using GCM (AndroidManifest)
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.back4app.pushnotificationtest"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<uses-permission android:name="android.permission.VIBRATE" /> | |
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | |
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> | |
<permission android:name="com.example.back4app.pushnotificationtest.permission.C2D_MESSAGE" | |
android:protectionLevel="signature" /> | |
<uses-permission android:name="com.example.back4app.pushnotificationtest.permission.C2D_MESSAGE" /> | |
<application | |
android:name=".PushNotification" | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:supportsRtl="true" | |
android:theme="@style/AppTheme"> | |
<activity android:name=".MainActivity"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN"/> | |
<category android:name="android.intent.category.LAUNCHER"/> | |
</intent-filter> | |
</activity> | |
<meta-data android:name="com.parse.push.gcm_sender_id" | |
android:value="id:YOUR_GCM_SENDER_ID" /> | |
<service android:name="com.parse.PushService" /> | |
<receiver android:name="com.parse.GcmBroadcastReceiver" 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="com.example.back4app.pushnotificationtest" /> | |
</intent-filter> | |
</receiver> | |
<receiver android:name="com.parse.ParsePushBroadcastReceiver" android:exported="false"> | |
<intent-filter> | |
<action android:name="com.parse.push.intent.RECEIVE" /> | |
<action android:name="com.parse.push.intent.OPEN" /> | |
<action android:name="com.parse.push.intent.DELETE" /> | |
</intent-filter> | |
</receiver> | |
</application> | |
</manifest> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment