Remote Push Notification in Android using Firebase in React Native Updated
У вашего броузера проблема в совместимости с HTML5
Hi guys, In this video I want to show you how to set your React Native app to receive push notification from the Firebase in Android and also compatible in Android pie.
I apologies, bgmessaging.js use for background handling.
//Multidex issue:
// resolved: app/bundle.gradle
// defaultConfig {
// multiDexEnabled true // add this line
// applicationId "com.appname"
// And
--May be no need add below line if you are getting same issue then add below line in app/bundle.gradle
// dependencies {
// implementation 'com.android.support:multidex:1.0.3' //add this line
// implementation project(':react-native-firebase')
My sample github project link:
https://github.com/rohitmodi12/firebasePushnotificaiton
React native firebase documentation and other links below:
https://github.com/invertase/react-native-firebase-docs/blob/master/docs/notifications/receiving-notifications.md
https://medium.com/@anum.amin/react-native-integrating-push-notifications-using-fcm-349fff071591
https://rnfirebase.io/docs/v5.x.x/getting-started
After react-native firebase npm install, link npm
$ react-native link
For message handling:
https://rnfirebase.io/docs/v5.x.x/messaging/receiving-messages