Questions tagged [react-native-push-notification]

Installation

npm install --save react-native-push-notification or yarn add react-native-push-notification

react-native link react-native-push-notification

NOTE: For Android, you will still have to manually update the AndroidManifest.xml (as below) in order to use Scheduled Notifications.

228 questions
11
votes
3 answers

react native push notification doesn't show banner (pop on screen) when app is in background or closed

I'm using react-native-push-notification and followed its documents. it works fine when the app is in the foreground but when the app is in the background and I try to send a notification from firebase console, just shown a small icon of the app in…
9
votes
1 answer

React Native handle socket connection's events when app is in background?

I'm working on Chat app using React native and WebSocket everything works fine in active mode but when you push the home button to make the app in background mode, the WebSocket onMessage events function is not triggered The good thing is that…
Liam
  • 6,517
  • 7
  • 25
  • 47
8
votes
1 answer

Default FirebaseApp is not initialized in this process - React Native - Local Notification

(Before you mark this question as duplicate, please read the whole question) I am using react-native-push-notification library in my React-Native Application. In my app I have not initialized Firebase because I do not need any remote notifications…
8
votes
1 answer

Android: 'onNotification' not executing when app is closed and clicked to notification

I am using react-native-pushnotification. here is the module link https://github.com/zo0r/react-native-push-notification in ios notifications working fine when in background and foreground also, but in android foreground it is working fine, But in…
Hussian Shaik
  • 2,559
  • 9
  • 37
  • 57
7
votes
4 answers

WARN No task registered for key ReactNativeFirebaseMessagingHeadlessTask in react native?

I have created a push notification using react-native Firebase and react-native-push-notification. i have implement all types of notifications like local, schedule background and quit. But i have sent the push notification by FCM when my app in quit…
7
votes
1 answer

react-native-push-notification - local notifications not working on Android

can someone please let me know where Im going wrong. From what I can see on instructions....theres no amendments required to Android specific files if you are only using local notifications and also using autolinking....except for adding…
james murphy
  • 1,505
  • 5
  • 31
  • 57
7
votes
2 answers

Using react-native-push-notification, App crashes when receiving new FCM notification

I was trying to add push notification on react-native app, so I used react-native-push-notification. The library configuration went well, but when receiving notification the APP crashes immediately saying "FirebaseApp is not initialized". Crash…
6
votes
1 answer

How to change react native push notifications status bar icon?

I am using firebase and react-native-push-notification to push notifications to my Android app and struggling to change the small notification icon with my own icon and none of the threads about this topic seems to help. I have the ic_test.png…
6
votes
2 answers

React-native: display foreground notifications like background notifications with zo0r/react-native-push-notification

I have set up push notifications on my React-native app with zo0r / react-native-push-notification . It works on Android, and on iOS when the app is in background mode. However, the notification does not display when the app is in foreground mode…
6
votes
0 answers

How to have multiple FirebaseMessagingService in Android?

In my project, I'm using two libs to handle two different types of push notifications: Localytics and react-native-push-notification. I have a custom FirebaseMessagingService that checks if it's a Localytics push then let the Localytics handle it…
5
votes
2 answers

How to check google play services version and firebase version in react-native project?

I am trying to install rn-push-notifications for which I need the google play services version and firebase version. Could you please assist me?
5
votes
0 answers

React Native Local/Remote Push Notification: How to get Click/Touch-Event with Payload?

I develop a cross-platform hybrid app with react native. I integrated remote push notification over Amazon SNS. I tried many plugins but mostly zo0r/react-native-push-notification The notification arrives on the android phone and a…
5
votes
0 answers

Alert is not displayed....When clicking on push notifications

I am running sample application..... I am using this module for push notifications..... My problem is when clicking on push notifications after clearing the instance of the app...In onNotification() console is printed but the alert is not…
Harika
  • 1,081
  • 3
  • 14
  • 25
5
votes
1 answer

react native push notifications shows on console on android but doesn't show notification on device or emulator

I am using FCM for push notifications on react native android but the issue is I am able to receive notification and it appears on console but not shown on device or emulator. My code is as below componentDidMount(){ PushNotification.configure({ …
5
votes
0 answers

How to receive react native push notification in foreground and background

Im using React Native Push Notification https://github.com/zo0r/react-native-push-notification Currently, it will receive push notification after closing the app. How can I pass my pushMessage(chat) into the notification? How to make it receive…
1
2 3
15 16