Friday, 17 May 2019

App Linking not working on testing environment

I am trying to implement app linking in my application. When I open the app I have a login screen with a login button. This login button when is pressed goes in browser for web login and then it is redirect into app. I want I open the application directly in this moment but deep linking is shows a dialog.

The json file is correct located at https://my_domain/.well-known/assetlinks.jsonand it's Content-Type is application/json .

My manifest file contains everything is needed for app linking:

 <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

    <data
      android:host="myhost"
      android:pathPrefix="/auth"
      android:scheme="https" />
    <data android:scheme="http"/>

In Android Studio in logs I get SingleHostAsyncVerifier:

Verification result: checking for a statement with source b <
  a: "https://host.de"
>
, relation delegate_permission/common.handle_all_urls, and target a <
  a <
    a: "BE:32:...:17"
  >
  b: "my_app_package"
>
 --> false.

and IntentFilterVerifier logs :

 Verification 172 complete. Success:false. Failed hosts:my_host.

The result of adb shell dumpsys package d is :

Package: my_app_package
Domains: my_domain
Status:  ask

I can not verify https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://web-site&relation=delegate_permission/common.handle_all_urls because my site is not public, it is not a production link and I get Timeout Error because of this. Could this be the problem?



from App Linking not working on testing environment

No comments:

Post a Comment