Android 11 (SDK 30) - Chrome Custom Tabs not available
See original GitHub issuePlugin version used: 2.0.0
After changing Cordova Target SDK version to 30 (Android 11) and app is running on the device with Android 11, this plugin doesn’t work anymore.
Code that I use
window.SafariViewController.isAvailable((available: any) => {
if (available) {
window.SafariViewController.show(
{
url: params.url,
hidden: false,
animated: true,
transition: "slide",
enterReaderModeIfAvailable: false,
tintColor: "#00ffff",
barColor: "#000000",
controlTintColor: "#ffffff",
showDefaultShareMenuItem: false
},
(result: any) => {},
(err: any) => {}
);
}
});
available
always returns false
.
Any ideas?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Using Custom Tabs with Android 11 - Chrome Developers
When an Android app using Custom Tabs targets SDK level 30 or above ... Intent is not found, an ActivityNotFoundException will be thrown....
Read more >Error on load Chrome Custom Tab in Android 11
Only error in Android 11 . Here is my code how I put I code in my app. ImageView adCustomBannerImage= findViewById(R.id.adCustomBannerImage); ...
Read more >Chrome Custom Tabs in Android with Kotlin - GeeksforGeeks
To address this issue, Google launched chrome custom tabs. It is a browser feature that provides apps with more control over their web ......
Read more >Build for Android 11 with Unity | ARCore - Google Developers
Versions of Unity that do not support customization of Gradle are unable to target Android 11 (API level 30) ( targetSdkVersion 30 )...
Read more >Fulfill common use cases while having limited package visibility
Open URLs in a browser or other app; Open URLs in Custom Tabs ... which you need to consider if your app targets...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I realized, that this plugin is not able to get available browsers from the device anymore (which supports Custom Tabs).
After reading google documentation: https://developers.google.com/web/updates/2020/07/custom-tabs-android-11#detecting_browsers_that_support_custom_tabs
Following change to
config.xml
fixed the problem.Example:
Hey, same issue and seeing an
ERROR {error: "custom tabs are not available"}
in my console. And again, thank you all for identifying and proposing solution.Any ETA for merging the fix and releasing new update?