Closed digitlninja closed 3 years ago
Hi @digitlninja Are you testing on real device ?
yes
Did you follow the ios installation instructions ? (On the iOS repository)
Yes, from: https://github.com/react-native-push-notification-ios/push-notification-ios#install
Not able to reproduce with the exemple project. Please double check your installation and take a look to the exemple project. And make sure you tested with a real device, simulator doesn't support notifications.
What example project ?? Yes Im testing only on a real device. I need to sort this urgently
Ive double checked my install many times... the way its done in the example project is a different more complex architecture. Ive simply initialized it as above and it should give me the token / fire onRegister when the app starts.... it doesnt.
Since I can't reproduce, I cannot help you more.
You havent helped at all though... what am I missing?
I don't know I'm not able to reproduce.
I think I fixed it.. The docs say not to invoke configure from a lifecycle method. so how can one pass the token to components???
You can store the token inside a variable, such as a global variable.
Bug
Environment info
react-native info
output:Library version: 7.2.0
Steps To Reproduce
react-native run-ios
The request permission popup displays, but the token is not logged (or alerted) I need to get the token to move forward with dev.Describe what you expected to happen:
onRegister
as in your docs)Reproducible sample code
Im lost or this is just not working. I've followed the docs: npm install -> pod install -> using autolinking.
Thank you