Is there a way to link / switch anonymous accounts in server?

87 views
Skip to first unread message

Okan

unread,
Jan 29, 2023, 8:44:12 AM1/29/23
to Firebase Google Group
We are developing a game where all players sign in anonymously. Some of our players delete and reinstall the app. These players are sending us tickets to reach their old data. Currently, our support team is moving their data manually after finding their old ids. Instead of this, I want to give these users their old ids. Thus, both their analytics history will not be lost and they will have direct access to their data in the firestore. There doesn't seem to be a way to do this, am I missing a point? If there is no way to do this, what would be the ideal solution for this issue?

Arthur Thompson

unread,
Jan 31, 2023, 2:10:05 PM1/31/23
to fireba...@googlegroups.com
Hi Okan,

If I understand correctly, you want to retrieve an anonymous user after they have uninstalled and reinstalled the app. Anonymous auth is not designed to survive across multiple sessions.

From your question it seems like you already have a way to identify the previous ID of the user that has reinstalled the app. If you have the ID then from your backend (eg: cloud function) you can create a custom token then on the client side have the user sign in with the custom token. This will instantiate the previous user.

Hope this helps,
Arthur.

On Sun, Jan 29, 2023 at 5:43 AM Okan <ocbu...@gmail.com> wrote:
We are developing a game where all players sign in anonymously. Some of our players delete and reinstall the app. These players are sending us tickets to reach their old data. Currently, our support team is moving their data manually after finding their old ids. Instead of this, I want to give these users their old ids. Thus, both their analytics history will not be lost and they will have direct access to their data in the firestore. There doesn't seem to be a way to do this, am I missing a point? If there is no way to do this, what would be the ideal solution for this issue?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/e753f5e7-831a-4504-af10-d238482728d5n%40googlegroups.com.

Okan

unread,
Feb 1, 2023, 12:24:14 PM2/1/23
to Firebase Google Group
Hi Arthur,
Thank you so much. This is exactly what I was looking for.
Regards

31 Ocak 2023 Salı tarihinde saat 22:10:05 UTC+3 itibarıyla arthurt...@google.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages