ive built a meteor cordova app that runs very well on my android 11. but it wont run on android 12 (crashes without opening at all)
im a newbee to android development (config.xml n manifest etc is all unknown) so ive this mobile-config file
// Add custom tags for a particular PhoneGap/Cordova plugin to the end of the
// generated config.xml. 'Universal Links' is shown as an example here.
<preference name="android-targetSdkVersion" value="31" />
<preference name="android-minSdkVersion" value="24" />
<activity android:name=".otherActivity" android:exported="true"/> </platform>
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity" xmlns:android="http://schemas.android.com/apk/res/android">
any help from experts on any obvious mistakes or any links to such tutorials will help me a lot. Many thanks!
Besides setting the exported flag (as you already did), you also need to ensure that the Java version that meteor uses to build the app is at least 11 and update your cmdline-tools version to the latest one.
@digisarathi This seems like a plugin issue, probably you have a plugin that isn’t compatible with the newest android API. What’s your cordova-plugins file? One way to go here would be to remove one by one and check if the error still occurs. If you find the broken plugin, you will need to create an issue on the respective repository or fix it with a fork.
Hey! thanks so much. so I use only one plugin cordova-plugin-admob. it is the latest version 3.2.5 and I guess thats what is crashing the app. I will check with the plugin makers regarding this and update this thread.
If anyone knows what a better plugin to use to show google Ads in the mobile app, please do share.