Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does FCM work with this package in iOS? #1036

Open
stee1ix opened this issue May 5, 2024 · 4 comments
Open

Does FCM work with this package in iOS? #1036

stee1ix opened this issue May 5, 2024 · 4 comments

Comments

@stee1ix
Copy link

stee1ix commented May 5, 2024

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.

@AugustoAleGon
Copy link

Short answer is not. Since the token that you get from notifications are APN and you need the FCM tokens.

@AugustoAleGon
Copy link

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.

@stevelegends
Copy link

I have successfully integrated the iOS version with https://github.com/react-native-push-notification/ios & firebase messaging. The pull request is coming soon.

@stee1ix
Copy link
Author

stee1ix commented Jun 4, 2024

@AugustoAleGon Use getToken for android as well? Should I not use the registerRemoteNotificationsRegistered function from react-native-notifications?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants