简体   繁体   English

Firebase 动态链接不适用于发布版本

[英]Firebase Dynamic Link Not Working for Relese Build

Firebase Dynamic Link is working for my android app in debug mode but it is not working in relese mode. Firebase 动态链接在调试模式下为我的 android 应用程序工作,但在发布模式下不工作。 I have updated SHA256 in console.firebase.com too.我也在 console.firebase.com 中更新了 SHA256。 I have updated signing keys too.我也更新了签名密钥。

In short:简而言之:

It is working for Debug APK It is not working for Play Store Relese APK.它适用于 Debug APK 它不适用于 Play Store Relese APK。

You will need to add Play store SHA256 signing keys to your assetlinks.json file.您需要将 Play 商店 SHA256 签名密钥添加到您的 assetlinks.json 文件中。 You can find the Play store SHA256 sigining keys under Play Console developer account under Release > Setup > App Integrity您可以在 Release > Setup > App Integrity 下的 Play Console developer account 下找到 Play store SHA256 签名密钥

From Android Documentation:来自 Android 文档:

If you're using Play App Signing for your app, then the certificate fingerprint produced by running keytool locally will usually not match the one on users' devices.如果您为您的应用程序使用 Play App Signing,那么通过在本地运行 keytool 生成的证书指纹通常与用户设备上的指纹不匹配。 You can verify whether you're using Play App Signing for your app in your Play Console developer account under Release > Setup > App Integrity;您可以在发布 > 设置 > 应用完整性下的 Play 管理中心开发者帐户中验证您是否正在为您的应用使用 Play 应用签名; if you do, then you'll also find the correct Digital Asset Links JSON snippet for your app on the same page.如果这样做,那么您还会在同一页面上为您的应用找到正确的数字资产链接 JSON 片段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM