cordova-plugin-app-launcher
cordova-plugin-app-launcher copied to clipboard
AppLauncher doesn't work with Android 11+
As per android documentation, package visibility privacy has been changed, and now package must be specified in order to be accessible/visible for other apps on the same device.
[I found some solutions ] (https://developer.android.com/training/package-visibility/declaring)
by adding package name into queries element in the AndroidMainfest file, but it doesn't seem to be working.
I solved this issue by adding the following to my config.xml
file, under widget/platform name=android/
:
<config-file mode="merge" parent="/manifest/queries" target="app/src/main/AndroidManifest.xml" xmlns:android="http://schemas.android.com/apk/res/android">
<package android:name="foo.bar.app" />
</config-file>
So there is no fix for this without manually adding the app package name to AndroidMainfest.xml? :-(
no known way to fix it other than adding the package name into the mainfest.xml