Open stee1ix opened 6 months ago
Short answer is not. Since the token that you get from notifications are APN and you need the FCM tokens.
After a checking a few libraries. What you need is install react-native-firebase/messaging
and use the method getToken
instead of the react-native-notifications
method.
Just install the library and follow the steps.
I have successfully integrated the iOS version with https://github.com/react-native-push-notification/ios & firebase messaging. The pull request is coming soon.
@AugustoAleGon Use getToken
for android as well? Should I not use the registerRemoteNotificationsRegistered
function from react-native-notifications
?
Does FCM work with this package in iOS?
I'm using Firebase Web SDK with react native. FCM notifications is working fine on android. But on iOS I'm not receiving any events.