具有自定义域的Firebase电子邮件链接身份验证
firebase文档在设置自定义动态链接域方面有点模糊 在react原生应用程序中,我可以成功地将无密码电子邮件身份验证链接发送到用户收件箱具有自定义域的Firebase电子邮件链接身份验证,firebase,firebase-authentication,Firebase,Firebase Authentication,firebase文档在设置自定义动态链接域方面有点模糊 在react原生应用程序中,我可以成功地将无密码电子邮件身份验证链接发送到用户收件箱 My const actionCodeSettings = { url: 'https://xxxxxx.com/some-verify-email-redirect-web-page', // This must be true. handleCodeInApp: true, iOS: { bundleId: 'com.xxxxx
My const actionCodeSettings = {
url: 'https://xxxxxx.com/some-verify-email-redirect-web-page',
// This must be true.
handleCodeInApp: true,
iOS: {
bundleId: 'com.xxxxxx.xxxxxxapp',
},
android: {
packageName: 'com.xxxxxx.xxxxxxapp',
installApp: true,
minimumVersion: '12',
},
dynamicLinkDomain: 'xxxxxx.com',
};
我已经授权了我的自定义域,并且能够创建和使用android应用程序的动态链接。
但是,我的自定义动态链接域是xxxxxx.com/app
。这意味着我的应用正在侦听前缀/app
:
"android": {
"package": "com.xxxxxx.xxxxxxapp",
"versionCode": 1,
"googleServicesFile": "./firebase/google-services.json",
"permissions": ["ACCESS_COARSE_LOCATION", "ACCESS_FINE_LOCATION"],
"intentFilters": [
{
"action": "VIEW",
"data": [
{
"scheme": "https",
"host": "xxxxxx.com",
"pathPrefix": "/app"
}
],
"category": ["BROWSABLE", "DEFAULT"]
}
]
},
我得到的验证链接如下所示:https://xxxxxx.com?link=https://xxxxxx-app.firebaseapp.com/_;/auth/action?apiKey…continueUrl%3Dhttps://xxxxxx.com/app/some-verify-email-redirect-web-page%26lang%3Den&apn=com.xxxxxx.xxxxxxapp&amv=12&ibi=com.xxxxxx.xxxxxxapp&ifl=https://xxxxxx-app.firebaseapp.com/_u/auth/action?apiKey…签名%26oobCode…continueUrl%3Dhttps://xxxxxx.com/app/…
因此,我的应用程序没有将其检测为应用程序链接并不奇怪,因为它缺少/app
有趣的是,如果我为此使用默认的xxxxxx.page.link
域,那么它至少会尝试打开一些应用程序,但当然无法打开,并重定向到Play Store
我是否需要在Firebase上手动创建动态链接来处理此自定义域验证链接
我需要在我的意向过滤器中添加一些内容吗
有没有专家能帮上忙?我错过了什么