nchutchind / cordova-plugin-app-launcher

Simple Cordova plugin for launching apps.
MIT License
88 stars 92 forks source link

AppLauncher doesn't work with Android 11+ #45

Open moaatazaamer opened 2 years ago

moaatazaamer commented 2 years ago

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.

latere-a-latere commented 1 year ago

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>
ragcsalo commented 1 year ago

So there is no fix for this without manually adding the app package name to AndroidMainfest.xml? :-(

moaatazaamer commented 1 year ago

no known way to fix it other than adding the package name into the mainfest.xml