Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Handle App Link Verification failure at install time

I added app link feature with autoVerify set for my app following link

On testing the app, it worked in the begining. Then after reinstalling the build, not working.

On debugging what I found is the response time for my .well-known/assetlinks.json file is > 1sec.

which gives timeout error on test-url https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://example.com&relation=delegate_permission/common.handle_all_urls

{ "maxAge": "599.999999353s", "debugString": "********************* ERRORS *********************\n* Error: deadline_exceeded: Timeout occurred while fetching Web statements from https://example.com./.well-known/assetlinks.json (which is equivalent to 'https://example.com/.well-known/assetlinks.json') using download from the web (ID 1).\n********************* INFO MESSAGES *********************\n* Info: No statements were found that match your query\n" }

Looks like because of this timeout, verification is failing.

I would like to know whether app/system retry verification at any point later if verification failed on install (may be because of connection issue or temporary website down)?

like image 963
bijoshtj Avatar asked Jan 06 '17 07:01

bijoshtj


1 Answers

Unfortunately Android M does not automatically reattempt verification if it fails due to timeout or connectivity issues. As you found in this guide the next attempt will occur on app update or re-install.

like image 58
kira_codes Avatar answered Sep 27 '22 18:09

kira_codes