Skip to content

Instantly share code, notes, and snippets.

@Sunilkumarr
Last active July 27, 2020 09:06
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 Sunilkumarr/d154df7567ea3b9f6377a61c84a49909 to your computer and use it in GitHub Desktop.
Save Sunilkumarr/d154df7567ea3b9f6377a61c84a49909 to your computer and use it in GitHub Desktop.
Overriding firebase react native messaging and adding applozic push notification
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