react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Support For Setting Legacy SenderID

Open kimihiro64 opened this issue 6 years ago • 3 comments

We have an FCM project, but our app has continued to use GCM on client side and the old GCM project id to register for tokens. We've rewritten the app to use react-native (and this library, which uses FCM client side), but it defaults to sending the new FCM project id instead of our old GCM sender id. The problem is that FCM server side gets a bunch of mismatched sender id errors for awhile whenever a device that had registered with the GCM id switches to trying to use the FCM id from the new project id. After hardcoding it to use getToken(senderID, scope) in the library side with the old sender id and 'gcm' scope, everything seems to work smoothly. It would be nice to have a property on .configure() to send in like legacySenderID or something for this use case, as we haven't quite figured out how to prevent the mismatched sender id errors.

kimihiro64 avatar Aug 21 '20 13:08 kimihiro64

Hi,

GCM will not be supported anymore, use an old version of the library (3.1.9) or feel free to fork the project.

It's actually hard to find time on the current state of the library. Supporting a deprecated notification provider would be more time consuming.

Best regards

Dallas62 avatar Aug 21 '20 14:08 Dallas62

As I said, we are using FCM, not GCM... To support this it just needs the ability to specify a senderID property in configure that would be used in FirebaseInstanceId.getInstance().getToken(senderID, scope) instead of FirebaseInstanceId.getInstance().getToken().

kimihiro64 avatar Aug 21 '20 14:08 kimihiro64

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 22 '21 00:08 github-actions[bot]