Android lock screen notification is not able to open Browser on double tapping

不想你离开。 提交于 2019-11-29 08:08:06

I think this is a bug in Chrome, and I have raised this issue to both Android and Chrome:

https://code.google.com/p/android/issues/detail?id=221940&can=4&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened

https://bugs.chromium.org/p/chromium/issues/detail?id=645848&can=4&q=&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified

However, I found a workaround: Use custom tabs instead of normal tabs can solve this issue.

intent.putExtra("android.support.customtabs.extra.SESSION", context.getPackageName());
intent.putExtra("android.support.customtabs.extra.EXTRA_ENABLE_INSTANT_APPS", true);

Add above Extras to force Chrome to use custom tabs.

Find more here: https://developer.chrome.com/multidevice/android/customtabs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!