Created
December 13, 2020 20:36
-
-
Save arnaudambro/1a28221cf211fa4315487bbacaa930a8 to your computer and use it in GitHub Desktop.
AndroidManifest.xml for setting up push notifications
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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.pushtest"> <!-- YOUR BUNDLE ID HERE --> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application | |
android:name=".MainApplication" | |
android:label="@string/app_name" | |
android:icon="@mipmap/ic_launcher" | |
android:roundIcon="@mipmap/ic_launcher_round" | |
android:allowBackup="false" | |
android:theme="@style/AppTheme"> | |
<activity | |
android:name=".MainActivity" | |
android:label="@string/app_name" | |
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" | |
android:launchMode="singleTask" | |
android:windowSoftInputMode="adjustResize" | |
android:exported="true"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> | |
<!-- Change the value to true to enable pop-up for in foreground on receiving remote notifications (for prevent duplicating while showing local notifications set this to false) --> | |
<meta-data android:name="com.dieam.reactnativepushnotification.notification_foreground" | |
android:value="true"/> | |
<!-- Change the resource name to your App's accent color - or any other color you want --> | |
<meta-data android:name="com.dieam.reactnativepushnotification.notification_color" | |
android:resource="@color/bootsplash_background"/> <!-- or @android:color/{name} to use a standard color --> | |
<meta-data android:name="com.dieam.reactnativepushnotification.default_notification_channel_id" | |
android:value="@string/default_notification_channel_id" /> | |
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationActions" /> | |
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationPublisher" /> | |
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver"> | |
<intent-filter> | |
<action android:name="android.intent.action.BOOT_COMPLETED" /> | |
<action android:name="android.intent.action.QUICKBOOT_POWERON" /> | |
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/> | |
</intent-filter> | |
</receiver> | |
<service | |
android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerService" | |
android:exported="false" > | |
<intent-filter> | |
<action android:name="com.google.firebase.MESSAGING_EVENT" /> | |
</intent-filter> | |
</service> | |
</application> | |
</manifest> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment