Last active
July 27, 2020 09:06
-
-
Save Sunilkumarr/d154df7567ea3b9f6377a61c84a49909 to your computer and use it in GitHub Desktop.
Overriding firebase react native messaging and adding applozic push notification
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
1.Add the RNFirebaseMessagingService.java attached file in your project by download that and drag and drop in your android manifest under your app> main> java >in your packge folder | |
NOTE: make sure that the RNFirebaseMessagingService.jav as your package name in place of package com.mysamplereact; | |
in RNFirebaseMessagingService.java | |
2.Addd this in your android manifest file | |
<service | |
android:name=".RNFirebaseMessagingService" | |
android:exported="false" | |
android:stopWithTask="false"> | |
<intent-filter> | |
<action android:name="com.google.firebase.MESSAGING_EVENT" /> | |
</intent-filter> | |
</service> | |
<service | |
android:name="io.invertase.firebase.messaging.ReactNativeFirebaseMessagingService" | |
android:exported="false" | |
tools:node="remove"> | |
</service> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment