Hi,
I tried to use AppLauncherPlugin to open another Outsystems mobile app from a mobile app.
I tried in Android 7, 10, and 11. It works well for Android 7 and 10. But, when I tried in Android 11, it doesn't work and show this error: Activity not found for package name.
I also tried using the Instagram app for the JSON input:
"{""packageName"":""com.instagram.android""}"
Unfortunately, the error still the same.
Can anyone tell me what is the problem and how I can resolve this?
Thank you
Hello,
Just tried this on my environment, its probably because there is an enhanced security on Android 11 (https://developer.android.com/training/package-visibility) so we need to add something to AndroidManifest.xml. I solved this problem with adding this to my plugin.xml and it works fine after that.
<config-file target="AndroidManifest.xml" parent="/manifest">
<queries>
<package android:name="your_app_package_name"/>
</queries>
</config-file>
Regards,
Abdiel Alvin
Um Abdiel Alvin,
Do you have an example of how this will translate to the Extensibility Configurations input?
Josiah
Unfortunately, I dont think its impossible to do it from Extensibility Configurations
Um,
Would like to know where is the location of the Android manifest xml in the plugin.xml. I've attached a screenshot of where I've placed it in the plugin.xml file.
I'm getting an error when I add in the above code into the plugin.xml. It keeps saying that the launcher is undefined.
I'm facing the same issue with android > 10, and I've tried the same fix, but with no luck, the issue still persist, although it works fine for android version 10 and less.
Any luck fixing the issues?
the same error!
I have fixed the issue by adding app package name to the mainfist.xml as mentioned above, but you have to regenerate the app.
If the app. is on production, you'll need to submit the new version to the store.