Set up authentication link to the user's email address
April 21, 2023 ยท View on GitHub
Android
- See Before you begin and follow the instructions to configure sign-in with Email Link correctly.
Attention: Skip step 2. The dependency for the Firebase Authentication Android library is already declared by the plugin. - See Enable Email Link sign-in for your Firebase project and follow the instructions to enable the Email provider and Email link sign-in method for your Firebase project.
- See Handling Android App Links on how to enable App Links in order to open an Email Link directly in your app.
-
Add the following intent filter to
android/app/src/main/AndroidManifest.xmlinside theactivityelement:<intent-filter android:autoVerify="true"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="[DOMAIN_NAME]" android:scheme="https" /> </intent-filter>[DOMAIN_NAME]must be replaced with your domain name of the link.
-
iOS
- See Before you begin and follow the instructions to configure sign-in with Email Link correctly.
Attention: Skip step 2. TheFirebaseAuthpod is already added by the plugin. - See Enable Email Link sign-in for your Firebase project and follow the instructions to enable the Email provider and Email link sign-in method for your Firebase project.
- See Support Universal Links on how to enable Universal Links in order to open an Email Link directly in your app.
-
Add the following lines to your
ios/App/App/Info.plistfile:<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleURLSchemes</key> <array> <string>[DOMAIN_NAME]</string> </array> </dict> </array>[DOMAIN_NAME]must be replaced with your domain name of the link. -
Add the following lines to your
ios/App/App/App.entitlementsfile:?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.developer.associated-domains</key> <array> <string>applinks:[DOMAIN_NAME]</string> </array> </dict> </plist>[DOMAIN_NAME]must be replaced with your domain name of the link.
-
Web
- See Before you begin and follow the instructions to configure sign-in with Email Link correctly.
- See Enable Email Link sign-in for your Firebase project and follow the instructions to enable the Email provider and Email link sign-in method for your Firebase project.