我在哪里可以找到应用程序的命名空间[Android]

前端之家收集整理的这篇文章主要介绍了我在哪里可以找到应用程序的命名空间[Android]前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我需要找到应用程序的命名空间,所以我可以填写assetlinks.json文件的值.
https://www.domain1.com/.well-known/assetlinks.json

[{
  "relation": ["delegate_permission/common.handle_all_urls"],"target": {
    "namespace": "android_app","package_name": "com.mycompany.app1","sha256_cert_fingerprints":
    ["14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5"]
  }
}]

解决方法

Tim,我也在寻找这个,因为Google文档从未在json中解释过命名空间字段.事实证明,你将值保留为android_app,这告诉消费者这些设置专门用于android_app.它不是指定您的应用程序或项目的特定命名空间(就像我也假设)

https://firebase.google.com/docs/app-indexing/android/app

Target: Using the namespace value of android_app determines the android app that receives the URLs. Configure it using its package name and the SHA-256 fingerprint of the certificate you used to sign your app before deploying it to the Play Store. See Signing Your Applications to learn more about deployment and your signing certificate.

猜你在找的Android相关文章