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
4
votes
2 answers

React native - How to navigate on Push notification click?

I am using react-native-push-notification. I had the issue of notifications not being displayed when the app is in background/killed state, to which the solution in multiple forums and GitHub is that we initialize and configure push notification…
4
votes
1 answer

Redirect to particular screen when click on remote push notification in react native (App is in background state)

I want to redirect to inbox screen after clicking on push notification on android and iOS Case 1: App already opened on android. - Successfully Working Push notification received. On Clicking on notification page redirected to inbox…
4
votes
1 answer

React native Push Notification onNotification event not working

Been stuck for days on this one. So, I'm using this package for implementing local push notification: https://github.com/zo0r/react-native-push-notification I'm able to get local scheduled notification like…
3iL
  • 2,146
  • 2
  • 23
  • 47
4
votes
4 answers

Scheduled Push Notification action onClick/onPress event in react native push notification?

I'm using this package for implementing local push notification: https://github.com/zo0r/react-native-push-notification I'm using action button like this to show buttons in my notification along with a text and a…
3iL
  • 2,146
  • 2
  • 23
  • 47
4
votes
0 answers

react-native-push-notification how to show badge number on iOS?

I'm a noob here, and I just faced a problem. The problem is that the app badge number won't show when a notification arrives/received. I tried this: DeviceEventEmitter.addListener('notificationActionReceived', action => { …
Rizki Sunaryo
  • 468
  • 1
  • 5
  • 14
4
votes
3 answers

React Native: AppState.addEventListener registering duplicate events on resume when tapping a notification

I have code which I want to run when my app resumes from the background. To this end, I register an event using AppState.addEventListener(). const handleAppStateChange = () => { console.log('Do stuff') } constructor(props: Props) { …
JackDev
  • 4,891
  • 1
  • 39
  • 48
4
votes
1 answer

Android react-native-push-notification onNotification not called when app is in the background and notification clicked?

When I send a GCM notification via node-pushnotification, I receive the notification on my android simulator in debug mode. When I click the notification (app is running in the background), it opens the app but does not call onNotification. I've…
4
votes
3 answers

How to reset application badge number in react native push notification?

I'm looking reset application badge number in react-native-push-notification when the user opens the app but can't find the method anywhere in the docs, any idea?
Hugo
  • 2,073
  • 6
  • 23
  • 46
3
votes
0 answers

Initial notification is null on iOS when app launched via a notification action react-native push-notification-ios

https://github.com/react-native-push-notification/ios#getinitialnotification is used to get the initial notification to know if the app is launched by a notification. The notification is null if the app is launched via a notification action. It…
3
votes
1 answer

APNS handle obtained by Expo in React Native is incorrect

EXPO SDK Version: 42.0.01 Developing for: iOS Our goal: successfully send a test notification from Test Send tool in Azure Notification Hub to a registered physical iPhone which is running a local instance of an EXPO app. Progress: we're able to…
3
votes
0 answers

Set interruptionLevel in iOS notifications to support time-sensitive notifications on react-native

iOS recently introduced "Focus modes" using which user can control interruptions when they are doing something. For e.g. user can configure a "Sleep" focus mode and a "Work" focus mode and specify which all apps can send notifications to the phone…
Varun Gupta
  • 2,870
  • 6
  • 33
  • 73
3
votes
1 answer

react-native-push-notification issue on building app

Can someone help me.I am now Currently working on an app and it works on my few hours but now i have an error message. i also tried updating the EXT{} on different version "react": "16.13.1", "react-native": "0.63.2", …
3
votes
1 answer

Background Notification when something changes with an app React Native

I am new to react native and am trying to create an app that I would like to received background notifications when some new content as been added. I have set up background notifications using firebase cloud messaging, however I have noticed that…
CodeLover
  • 166
  • 1
  • 11
  • 34
3
votes
0 answers

Expo push notification sent to multiple devices instead of one

I'm working on mobile app using expo managed workflow. My app has PHP REST API for the backend. I encountered a strange issue when working on the push notifications part of the app. I'm using 2 different devices for testing, an iPhone and Android…
3
votes
2 answers

react native push notification (Android) - notification keeps repeating and wont stop

I am using react-native-push-notification library. I am able to make notification appear along with vibration and sound.....however problem is that it keeps repeating and wont stop. I get 20+ of the same notification in quick succession. Anyone…
james murphy
  • 1,505
  • 5
  • 31
  • 57
1
2
3
15 16