admin管理员组文章数量:1415664
I'm developing an Android application that uses App Links. For security reasons, the assetlinks.json file is hosted on a server that is only accessible via VPN. Although my test device can access the file when connected to the VPN, my app's App Links are not functioning as expected.
From what I've gathered, Android uses a Google proxy to fetch assetlinks.json for domain verification rather than connecting directly from the device. This means that even if my device has VPN access, the proxy won’t be able to retrieve the file because it’s not publicly accessible.
Is it possible for Android App Links to work if assetlinks.json is only available via VPN? What is the recommended approach for testing App Links in a VPN-restricted environment? Are there any workarounds? Any insights or alternative testing strategies would be greatly appreciated!
Thanks in advance for your help!
I'm developing an Android application that uses App Links. For security reasons, the assetlinks.json file is hosted on a server that is only accessible via VPN. Although my test device can access the file when connected to the VPN, my app's App Links are not functioning as expected.
From what I've gathered, Android uses a Google proxy to fetch assetlinks.json for domain verification rather than connecting directly from the device. This means that even if my device has VPN access, the proxy won’t be able to retrieve the file because it’s not publicly accessible.
Is it possible for Android App Links to work if assetlinks.json is only available via VPN? What is the recommended approach for testing App Links in a VPN-restricted environment? Are there any workarounds? Any insights or alternative testing strategies would be greatly appreciated!
Thanks in advance for your help!
Share Improve this question asked Feb 11 at 11:26 Daniel BrunnerDaniel Brunner 838 bronze badges 2- Does your server meet the criteria that the requests for assetlinks.json result in an HTTP 200 response (i.e. no redirects or such), and that its certificate chain is verifiable (i.e. not self-signed)? – Michael Commented Feb 11 at 13:38
- Yes it does, No redirects and i get a 200 respsonse on the file – Daniel Brunner Commented Feb 12 at 14:21
1 Answer
Reset to default 0Devices with an Androidversion of 12+ go through a Google proxy API to verify domains, meaning that a VPN will not allow access to fetch the assetlinks.json. (source: https://issuetracker.google/issues/239724946). Workaround for testing environment is to use "adb shell pm set-app-links --package ".
本文标签: flutterCan Android App Links work when assetlinksjson is only accessible via VPNStack Overflow
版权声明:本文标题:flutter - Can Android App Links work when assetlinks.json is only accessible via VPN? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745215261a2648126.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论