App links intent filters in assetlinks.json not working on Android

前端 未结 12 1911
时光取名叫无心
时光取名叫无心 2020-12-02 17:12

My app defines the intent filters to handle URL\'s from my site defined by


  

        
12条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 17:29

    For us it was Windows line endings!

    Testing with "https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://domain1:port&relation=delegate_permission/common.handle_all_urls" proved invaluable as it gave us an "Could not parse statement list (not valid JSON)" error which led us to the problem.

    TIP: It was good to use the 'Save File' button in the Android Studio App Links Assistant instead of copying and pasting as we did - that way it generates the file itself and is guaranteed not to have this issue.

提交回复
热议问题