We need to move an app from an existing project in Firebase to a new project with a different sender/server key. Will topic subscriptions still work for past users? I am assuming they aren't tied to the sender/server key of the project but I could be wrong.
Asked
Active
Viewed 68 times
1 Answers
1
It would change. The registration token that is used to subscribe to a topic is tied to the senderId (project) that it is created from -- it's why enabling multiple senders would create different tokens per sender.
So yes. If you're going to move, you'll have to somehow subscribe all the users to their corresponding topics on that new project.

AL.
- 36,815
- 10
- 142
- 281
-
Wow, Google is making us move all our 400 apps under one project to single projects. – Mike Flynn Jun 19 '18 at 02:55
-
There doesnt seem to be a way to reassign current topic users to new ones, since they dont provide an api to do so – Mike Flynn Jun 19 '18 at 15:54
-
If you move the users to a new project, you'd have to go through the registration process to each of them again. Using the resulting tokens, you could use the InstanceId server API to batchAdd the users to a topic. – AL. Jun 20 '18 at 02:29
-
I was doing that, but it seems the tokens are tied to the firebase project key, so I cant reuse the tokens to reassign topics under this new key. – Mike Flynn Jun 20 '18 at 04:09
-
I would suggest [enabling multiple senders](https://stackoverflow.com/a/37981412/4625829) to the app to get a token for your new project, save the corresponding tokens, then do the batchAdd. – AL. Jun 20 '18 at 06:31
-
Yes I will have to, but that is over 400+ apps I would have to resubmit code for. Quite ridiculous if you ask me. – Mike Flynn Jun 20 '18 at 12:25