[SafariViewControllerPlugin] SafariViewControllerPlugin not working for Android 11 generated with MABS 7
Forge component by André Gonçalves
Application Type


There is an issue with SafariViewController Plugin  - it's not working for Android 11 when the app is generated with MABS 7.

We can find the details on this link:  https://github.com/EddyVerbruggen/cordova-plugin-safariviewcontroller/issues/179 

Based on the proposed solution I added the following entry to safariviewcontroller plugin.xml file:

<config-file target="AndroidManifest.xml" parent="/*">



         <action android:name="android.support.customtabs.action.CustomTabsService" />




It solved the issue we had with Android 11 with no identified impact on any of the other Android releases we've tested.

Attached the module with the change done (plus a small adjustment to the way it handles errors).

It would be nice to have this fix included in the component.


Artur R.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.