最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - Deeplink is not bringing the app to the forground - Stack Overflow

programmeradmin0浏览0评论

In an android app I am working on, to proceed with the payment, I navigate the user to the browser.

When he reaches the final url, the app does not come again to the foreground. Any help?

I have made sure

  1. The sha key is in /.well-known/assetlinks.json
  2. The manifest contains the intent, on the related activity

        <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:scheme="https" />
            <data android:host="url.gr" />
            <data android:pathPrefix="/checkout/" />
        </intent-filter>
    </activity>

In an android app I am working on, to proceed with the payment, I navigate the user to the browser.

When he reaches the final url, the app does not come again to the foreground. Any help?

I have made sure

  1. The sha key is in https://url.gr/.well-known/assetlinks.json
  2. The manifest contains the intent, on the related activity

        <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:scheme="https" />
            <data android:host="url.gr" />
            <data android:pathPrefix="/checkout/" />
        </intent-filter>
    </activity>

Share Improve this question asked Feb 6 at 18:51 semicnsemicn 136 bronze badges 2
  • There are many Web browsers for Android. Only some support deeplinks by default. Which browser are you testing? – CommonsWare Commented Feb 6 at 18:54
  • @CommonsWare google chrome, as well as testing it with chrometabs (which is probably the same thing) – semicn Commented Feb 6 at 18:57
Add a comment  | 

1 Answer 1

Reset to default 0

Your app does not come again to the foreground because i think your data field is not set up properly. Try using this scheme :

instead of

Did you also try in order to test and see which part of the data is failing to use only the Host and the scheme definition ?

The link is not catch by your app otheriwse it would come to the foreground.

Let me know

发布评论

评论列表(0)

  1. 暂无评论