im using firebase auth sendSignInLinkToEmail()
with universal links, not dynamic links.
When i get an email, i click the email sign in link on my iPhone, but it opens my website, instead of opening my iOS App.
the links looks like ://mydomain.firebaseapp/__/auth/action?apiKey%3DAIza...C8_X8%26mode%3DsignIn%26oobCode%3DQC...FzuA%26continueUrl%3D
mydomain
and myteamid
are replaced accordingly.
why is the link not deep linking and opening my iOS app?
Setup
"react-native: "0.73.0"
firebase,
Email link (passwordless sign-in
Enabled.- added authorized domains: mydomain
- ios settings > team id = myteamid
react-native code
const actionCodeSettings = { url: '', handleCodeInApp: true, iOS: { bundleId: 'com.mydomain.main' }, android: { packageName: 'com.mydomain.main', installApp: true, minimumVersion: '1' }, linkDomain: 'app.mydomain' } await sendSignInLinkToEmail(auth, email, actionCodeSettings)
Appdelegate.mm, followed: Universal Deep Linking in react native 0.73
myapp.entitlements
<key>com.apple.developer.associated-domains</key> <array> <string>applinks:app.mydomain</string></array>
following:
5.1. apple-app-site-association verified
app.mydomain
using /{ "applinks": { "apps": [], "details": [ { "appID": "myteamid.mydomain.main", "paths": [ "NOT /__/auth/action/", "NOT /__/auth/handler/", "NOT /_/*", "/*" ] } ] } }
5.2. Configure your project to use the new links. ran the script, Response 200 and
ProjectConfig { smsRegionConfig: {}, multiFactorConfig_: MultiFactorAuthConfig { state: 'DISABLED', factorIds: [], providerConfigs: [] }, mobileLinksConfig: { domain: 'HOSTING_DOMAIN' } }