Questions tagged [react-native-push]

4 questions
4
votes
4 answers

react-native push notification onNotification doesn't trigger

I am using zo0r react-native-push-notification library. "react": "16.0.0-alpha.12", "react-native": "^0.45.1", "react-native-push-notification": "^3.0.0" This code runs every time I open an app: PushNotification.configure({ onNotification:…
Andrei
  • 42,814
  • 35
  • 154
  • 218
4
votes
2 answers

React Native get navigation object outside screen component

I need to be able to navigate and reset navigation stack from modules that are not necessarily screen components. It means, I can't use: const {navigate} = this.props.navigation; In my case, I need to properly redirect user to the right screen…
1
vote
1 answer

React Native Push Notification onNotification callback is inconsistent

I've been using react-native-push-notification library for quite some time for local notifications. Now I need remote silent notifications. Basically I send a notification that gets delivered to onNotification callback and I send local notification…
Andrei
  • 42,814
  • 35
  • 154
  • 218
0
votes
2 answers

React Native Push Notification onRegister token is null

I am using zo0r react-native-push-notification library. For some reason, when i open the app for the first time after i installed it on the mobile device (iOS or Android) the token is returned as null. PushNotification.configure({ onRegister:…