簡體   English   中英

快速地以編程方式創建的firebase動態鏈接不起作用,沒有域

[英]firebase dynamic link created programmatically in swift doesn't work, no domain

我已使用動態鏈接配置​​了Firebase項目,我擁有DL的域。 但是,當我以編程方式創建收縮鏈接時,會出現錯誤。 我收到此錯誤是為了進行目標測試和項目調試,但是相同的代碼用於發布應用程序,因此動態鏈接有效。 每個項目目標都有自己的Firebase項目和域。 我不知道為什么只能發行版本?

Your project does not own Dynamic Links domain

使用您的bundleID,app_code和API密鑰嘗試以下命令行:

curl -X POST --dump-header -H“ X-Ios-Bundle-Identifier:REPLACE_THIS_WITH_YOUR_BUNDLE_ID” -H“接受:application / json” -H“內容類型:application / json” -d“ {\\” longDynamicLink \\“:\\” https://REPLACE_THIS_WITH_YOUR_APP_CODE.app.goo.gl/?link = https%3A%2F%2Fwww%2Egoogle%2Ecom%3Fq%3Djump \\“,\\”后綴\\“:{\\” option \\“ :\\“ UNGUESSABLE \\”}}“” https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=REPLACE_THIS_WITH_YOUR_API_KEY

讓我知道它是如何工作的。

如果此行能夠創建短鏈接,則iOS代碼中將出現錯誤。

curl -X POST --dump-header - -H "X-Ios-Bundle-Identifier: com.debugbundlefromanotherfirebaseproject.debug" -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"longDynamicLink\":\"https:\/\/RELEASE_DOMAIN.app.goo.gl\/?link=https%3A%2F%2Fwww%2Egoogle%2Ecom%3Fq%3Djump\",\"suffix\":{\"option\":\"UNGUESSABLE\"}}" "https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=API_KEY_RELEASE"
{
  "shortLink": "https://RELEASE_DOMAIN.app.goo.gl/EDKuPWwaXrFzfs4S2",
  "warning": [
    {
      "warningCode": "UNRECOGNIZED_PARAM",
      "warningMessage": "Android app 'android.com.releaseandroidid' lacks SHA256. AppLinks is not enabled for the app. [https://firebase.google.com/docs/dynamic-links/debug#android-sha256-absent]"
    },
    {
      "warningCode": "UNRECOGNIZED_PARAM",
      "warningMessage": "Android app 'android.com.debugeandroididfromanotherfirebaseproject' lacks SHA256. AppLinks is not enabled for the app. [https://firebase.google.com/docs/dynamic-links/debug#android-sha256-absent]"
    }
  ],
  "previewLink": "https://RELEASE_DOMAIN.app.goo.gl/EDKuPWwaXrFzfs4S2?d=1"
}

我認為這可能是Firebase中的問題。 因為對於發布項目域POST工作,盡管請求具有錯誤的捆綁包ID,所以其他結果警告中包含來自另一個Firebase項目的帶有Android ID的警告。 我正在等待Firebase的回應。 上面的例子。

暫無
暫無

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

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