Getting started with account linking and anonymous authentication
ฝัง
- เผยแพร่เมื่อ 1 ก.ค. 2024
- A lot of apps throw their potential users off at the most critical part of the user journey: the onboarding process.
In this video, Firebase Developer Advocate @PeterFriese will show you how to implement a smooth onboarding process for your app using Anonymous Authentication and Account Linking.
What's so cool about this? Users can try out your app without having to sign in, but they still have a unique ID that you can use to store their data. Once they are sure they like your app, you can ask them to sign in, and upgrade their guest account to a full account.
Chapters:
0:00 Asking users to sign in first 😱
0:44 How to build a streamlined onboarding process
0:59 Reasons for signing in
2:17 The sample app
2:47 DEMO: No need to sign in!
3:30 How does this work?
5:51 Implementing Anonymous Authentication
7:56 Upgrading accounts using Account Linking
9:59 DEMO: Anonymous Auth & Account Linking in action
12:31 Other scenarios
Resources:
Getting started with Firebase Auth for Apple platforms → goo.gle/3DDIlbk
Anonymous Authentication for Apple documentation → goo.gle/2wLa36H
Firebase Console → goo.gle/3vPYq9K
Getting started with Firebase on Apple platforms → goo.gle/3szkx2j
App Store Review Guidelines → goo.gle/3SLjxmm
Source code → goo.gle/3Gnabtn
Catch more Firebase Fundamentals → goo.gle/Firebase-Fundamentals
Subscribe to Firebase → goo.gle/Firebase
#FirebaseFundamentals - วิทยาศาสตร์และเทคโนโลยี
Subscribe for the latest → goo.gle/Firebase
Great video! I wonder what happens to the anonymous account on the second device (and its data, if it would be created). Is that account also linked to the email? Is the data lost - as there is no merge action?
Hey, thanks for this, great video! One question about a specific user journey, can a user be sent a deeplink via email containing reference to the user ID so when they follow the deeplink and sign up they will have prep populated information?
Great video thanks!
Our use-case is a little different - what is the flow if we don't want to use anonymous sign in?
How can we have a user sign in with one strategy, sign out, then sign in with another strategy and link those two accounts? At the time of the 2nd sign-in there's no "user" reference to use user.linkWithCredential(credential)
Thank you
But Firebase authentication does not support EU location and only stores and processes the data in the US that clear violation of GDPR.
Hello. I have tried using signInAnonymously in a simple Kotlin app that does just that, and it takes an incredibly long time to complete - around 20 seconds. Everything else after that works just fine and my interned is very fast. Is this normal?
Sign in anonymously should return almost instantly. If you can reliably reproduce this, please feel free to open an issue on the Android SDK repo.
@@PeterFriese thank you for your reply. Yes, I can reproduce it reliably, it happens all the time. I will package my sample code and open an issue. To clarify, function itself returns instantly, but the callback is called after 20-30 seconds, so it's taking a very long time to create an account.
Mine is showing error: Firebase: This operation is restricted to administrators only. (auth/admin-restricted-operation)
So basically if i want to follow along with this video or utilize the repository i need a macOS/iphone? I want to implement this in react native for web/android. I don't have a Mac or an iphone
We'll post a video for Android / web soon.
@@PeterFriese will Flutter get some love too? I get it's redundant but it would be nice!
Thanks for the session. If possible make us a similar video but with Flutter. Thanks
Hello, dear Peter! Can i receive a short userID(5-6 symbols) to Firebase users collection? Many thanks 4 your answer. Boris 😊
Hi Boris, can you describe what you’re trying to achieve? How you manage additional user data (e.g. any preferences, high score in a game, etc.) is up to your app / use case.
🤩🤩🥳
저는기회가없습니까