Comments (3)
Use PushNotification.configure(...)
to setup your listeners.
The onRegister
event is called when the registration token is received for Android and iOS. Also remember to set your senderID
in Android (its your Google Console Project ID).
from react-native-push-notification.
Thanks for the response. I registered to GCM and put my senderID
into PushNotification.configure(...)
but onRegister
event is still not triggered. Do I need to call any method?
from react-native-push-notification.
I think it was due to emulator, on real device the event started triggering, thanks for guidance.
from react-native-push-notification.
Related Issues (20)
- Unable to start receiver com.dieam.reactnativepushnotification.modules.RNPushNotificationActions: java.lang.SecurityException: Permission Denial: android.intent.action.CLOSE_SYSTEM_DIALOGS broadcast from com.package.name requires android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS. HOT 2
- Scheduled notification is not coming android
- wrong sound when update version of app
- Foreground onNotification behaviour on iOS HOT 2
- Why are people still using this outdated library? HOT 3
- Indirect notification activity start (trampoline) from com.xxx blocked HOT 1
- How to pass and get data when notification clicked from .onNotification()
- -
- delete
- update build gradle version
- Scheduled Notifications are not displaying..... HOT 1
- Schedule Daily Notification is not working after few days if i did not open the app
- Android - Push notifications not received when app is closed (Killed/Terminated/etc) HOT 5
- Get onNotification triggered when a remote notification is received HOT 1
- Is there a method to persistently display the badge count, even after all notifications have been cleared or dismissed?
- Asking notification permission for Android 13 and above in react native version 0.61 HOT 1
- How can I ask notification permission for Android 13 and above in react native version 0.61 using POST_NOTIFICATIONS? HOT 1
- Default FirebaseApp is not initialized in this process com.client. Make sure to call FirebaseApp.initializeApp(Context) first. HOT 1
- play the notification sound simultaneously on android and bluetooth device
- Hello, I would like to call a function when the use click to a notification I have looked in the other issues to answer this question. And I have seen many responses to this subject. I need to use PushNotification.configure as well as onNotification: function The problem and when I use this function I get the following error: Default FirebaseApp is not initialized in this process I only use local notifications so I don't have to install firebase. Is there a way to call a function when the user clicks on a notification without using firebase? Thank you HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-push-notification.