react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

Does FCM work with this package in iOS?

Open stee1ix opened this issue 1 year ago • 4 comments

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.

stee1ix avatar May 05 '24 11:05 stee1ix

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

AugustoAleGon avatar May 10 '24 23:05 AugustoAleGon

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.

AugustoAleGon avatar May 20 '24 20:05 AugustoAleGon

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

stevelegends avatar May 28 '24 08:05 stevelegends

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

stee1ix avatar Jun 04 '24 04:06 stee1ix

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jan 31 '25 22:01 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Feb 24 '25 23:02 stale[bot]