Search code examples
androidandroid-intentandroid-12android-deep-linkgoogle-pixel

Android Google Pixel 6 Pro device Navigating from app to outside browser issue


we are trying to navigating from our Mobile App page to browser apps like chrome/firefox (using https url) Please find the below sample code.

My Sample Code: passing https url only.

Intent urlObjectIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(urlData));
startActivity(urlObjectIntent);

we have tested moto g40 and Samsung and other android mobiles os version 11 and 12 also. There is no issue on android mobiles navigating from app to outside of browser.

But, Particularly issue facing on only google pixel pro 6 mobile with OS Version 12. also, we don't have this pixel types of mobiles for development in hand.

This mobile is not allow to navigate from app to browser outside. also, we are getting the below warnings in pixel device, not for Samsung.

" No Intent available to handle action. "

Referred few stack pages also below.

No Activity found to handle Intent : android.intent.action.VIEW

https://medium.com/@idandamri/app-links-and-deep-links-with-android-12-765cf9bc9cca

  • is there any modification on intent calling to browsers?
  • if anything updated on android os 12 version level from google?
  • If yes, then, why its affecting for Pixel mobile only, not affect other mobiles. like Samsung
  • Please share me if any specific modification on Intent Call Action at android OS 12 versions. ex: google pixel pro 6 12 v

https://developer.android.com/training/app-links/deep-linking

https://developer.android.com/studio/write/app-link-indexing

any help on this. Thanks Advance.


Solution

  • we are targeting our app to Android 12 with API 31. so, as per latest android os 11,12 restriction intent access,

    some of the installed apps are visible and few are not visible.

    so, we have to add the query to access that particular app package in manifest file, which is not able to access in our app.

    more details available in below android developer link:

    Android Developer Link

    Note: If your app targets Android 10 (API level 29) or lower, all apps are visible to your app automatically.