动态链接从Firebase返回空的JSON字符串 [英] Dynamic link returning empty JSON string from Firebase
问题描述
我正在设置我的Android应用程序以支持电子邮件身份验证,并且作为任务的一部分,我需要创建一个动态链接,这是我在Firebase控制台中所做的.但是,当我测试链接时( https://chiaramail.page.link/.众所周知/assetlinks.json ,我刚得到空数据("[]").还有其他事情需要发生吗?
I'm setting up my Android app to support email authentication and as part of the task I need to create a dynamic link, which I did in the Firebase console. However, when I tested the link (https://chiaramail.page.link/.well-known/assetlinks.json, I just got back empty data ("[]"). Is there something else that needs to happen?
推荐答案
我遇到了同样的问题.实际上是因为,您需要提供SHA256而不是SAH1才能实现到项目的动态链接.我试图通过项目设置将其添加到现有项目中.但这对我没有用.
I had the same issue. Actually it is because, you need to provide SHA256 instead of SAH1 to implement dynamic link to your project. I tried to add it with my existing project through project settings. But it didn't work for me.
然后,我创建了一个新项目,并在sdk配置中跳过了SHA1输入,完成sdk设置后,转到项目设置并添加了SHA256.然后我尝试了链接<您的动态链接>/.well-known/assetlinks.json
.
Then I created a new project and in the sdk configuration I skipped SHA1 input and after completing sdk setup, I went to the project setting and added SHA256. then I tried link <your dynamic link>/.well-known/assetlinks.json
.It worked.
感谢伴侣.
这篇关于动态链接从Firebase返回空的JSON字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!