簡體   English   中英

深層鏈接無法通過Firebase電子郵件驗證鏈接運行

[英]Deep link doesnt work from Firebase email verification link

我已經在firebase控制台中設置了一個深層鏈接,更新了SHA1,SHA256,我嘗試從移動瀏覽器調用該深層鏈接,它完美地打開了已安裝的應用程序,但是當我嘗試使用從應用程序發送的電子郵件驗證鏈接時,它就會進入商店。 以下是發送驗證鏈接的方式

val actionCodeSettings = ActionCodeSettings.newBuilder()
            .setUrl("https://testapp.page.link?login=true")
            .setHandleCodeInApp(true)
            .setIOSBundleId("test.example.com")
            .setAndroidPackageName(
                    "test.example.com",
                    true, 
                    "12" )
            .build()


    mAuth!!.sendSignInLinkToEmail(email, actionCodeSettings)
            .addOnCompleteListener { task ->
                if (task.isSuccessful) {
                    Log.d("EmailVerification", "Email sent.")
                }
            }

我的意圖過濾器如下所示

 <intent-filter>
            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />



            <data
                android:host="testapp.page.link"
                android:scheme="http" />
            <data
                android:host="testapp.page.link"
                android:scheme="https" />

        </intent-filter>

我已將網域列入白名單,我會重復通過移動瀏覽器進行鏈接,但不能通過電子郵件進行鏈接。 任何幫助表示贊賞

val actionCodeSettings = ActionCodeSettings.newBuilder()
        .setUrl("https://testapp.page.link?login=true")
        .setHandleCodeInApp(true)
        .setIOSBundleId("test.example.com")
        .setAndroidPackageName(
                "test.example.com",
                true, 
                // Minimum android version of app.
                "12" )
        .build()

我認為您需要的應​​用程序版本“ 12”可能未安裝在設備上。 您可以為該字段或應用程序的當前版本傳遞null。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM