Support For Setting Legacy SenderID
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.
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
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().
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.