How to disable disambiguation dialog when opening Branch.io deeplink

不羁岁月 提交于 2019-12-11 14:47:32

问题


I have followed the steps to setup deep links using Branch.io in my app and I successfully received my first deep link through an SMS.

My problem is that when I open the link I am not directly taken to the link destination (website or app), but to a disambiguation dialog, exactly like in this video : https://www.youtube.com/watch?v=lpaByLW_ctw&t=3m21s

Apparently this can ben avoided by linking the Digital Asset Links file to a given URL.

When I check this with the App Links Assistant, an error saying that the file is malformed, which is not true. When I click the link I get the exact same content as shown in the preview, but the SHA246 fingerprint value is missing (even though I filled the "SHA256 Fingerprint" field in Branch.io dashboard, under "Links Settings", "Android", "SHA256 Cert Fingerprints").

How can I properly link this deep link to my Android app ?


回答1:


I am not sure why you are following the above method to link your Branch link domain to the asset-link file. Branch hosts the asset link file for you.

All you need to do is enable App Links in the Link Settings on the Branch dashboard and add your SHA256 certificate. Branch will then host the asset-link file for you which will be scraped by Google.

To know more on how to configure app links for your app you can refer to the Branch documentation here.

Here is a post for more information on the prerequisites for the deeplinking to work.




回答2:


As of today it takes around 30 minutes for Branch to update the .well-known/assetslinks.json file. This got me confused and made me switch my original SHA256 fingerprints (which was the valid one) for several other fingerprint, ending up with an invalid one.

Also note that you won't get any error in the dashboard if you provide an ill-formed SHA256.



来源:https://stackoverflow.com/questions/48869630/how-to-disable-disambiguation-dialog-when-opening-branch-io-deeplink

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!