Closed IonutRealDevs closed 4 years ago
Hi @IonutRealDevs Are you run in iOS with simulator or real device?
Real device connected to mac, i know that on simulator is not working.
@IonutRealDevs Hello, you can give your code in here, Notification implement only.
import PushNotification from 'react-native-push-notification'
export default PushNotifications = () => {
PushNotification.configure({
onRegister: function(token) {
console.log('Token', token)
},
senderID: '474326164077'
})
}
Here is it. Also i added in AppDelegate.m the code from documentation.
Same problem here, I am not sure if this a linking issue or not. "react-native": "0.60.0", "react-native-push-notification": "^3.1.9",
same code as @IonutRealDevs and the onRegister is not being called and no token generated
AppDelegate.m is :
What solved my issue was to enable the push notification in the capabilities, I forgot to do this at first
Me too, i solved by enabling notifications in capabilities, but now i don't receive notifications . In AWS SNS the status for the token is Enabled first time, after i try to send a message, the status became Disabled... How to solve this?
Hello. I have a problem on iOS, i don't receive device token and i don't know what i am doing wrong. On Android all is working but on iOS don't. When i open the app on iOS device i get that prompt message if i want to allow to receive notifications.
I followed the tutorial from here, but i used react-native link instead manual linking. What am i missing?