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

Hi, 


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="/*">

  <queries>

    <intent>

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

   </intent>

  </queries>

 </config-file>


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.

Regards

Artur R.

SafariViewControllerPlugin.oml

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