nchutchind / cordova-plugin-app-launcher

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

Plugin not able to check app availability in Android 11 devices #41

Closed tusharagaarwal closed 2 years ago

tusharagaarwal commented 2 years ago

Plugin is not able to check if app is installed in Android 11 devices using either package name or custom URI scheme. Tested and working on all devices running in lower versions of android.

Error:

2021-09-27 14:47:31.772 19270-19666/com.invokerApp D/Launcher Plugin: No Activities found that handle uri: sampleApp://

samcsyu commented 2 years ago

Please try to specify package name to be checked in AndroidManifest.xml, inside the tag, which is required for Android 11. Please see following link for details

https://developer.android.com/training/package-visibility/declaring

Jackson-park commented 2 years ago

If you add this content, it has been confirmed that it works normally. Is there a way to automatically input the platform when adding it?

tusharagaarwal commented 2 years ago

@samcsyu yes adding the package name in query list in AndroidManifest.xml will allow me to access the installed package list. Thanks for the information.