6

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)?

bijoshtj
  • 299
  • 4
  • 14
  • 1
    From This link: https://chris.orr.me.uk/android-app-linking-how-it-works/ , What I understand is it will attempt link verification only once per install. If verification fails on install, it will have normal behaviour. Next verification happens only if we update the app. – bijoshtj Jan 10 '17 at 18:19
  • Was it a fault at your server end? How did you fix it? – Rahul Sainani May 05 '17 at 18:58

1 Answers1

2

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.

kira_codes
  • 1,457
  • 13
  • 38