Home > Enterprise >  IONIC Cordova app is giving android exported error
IONIC Cordova app is giving android exported error

Time:11-18

We have an app developed using IONIC CORDOVA. When I am trying to upload app on the play store then it gives an error "Apps targeting Android 12 and higher are required to specify an explicit value for android:exported"

I am using cordova-android: 8.0.0

If I am using cordova-android:10.1.0 then I am unable to build app.

CodePudding user response:

You should update to cordova-android 11. This release features support for Android 12 and the latest play store requirements.

https://cordova.apache.org/announcements/2022/07/12/cordova-android-release-11.0.0.html

CodePudding user response:

I was having the same issues. Im not sure what causes the issues I think it is an cordova one. But you can resolve it by going to the platforms/android/app/manifests/androidManifest.xml there is a section <activity. Add android:exported="true". It should look like this <activity android:exported="true" ....(other variables)

Add android:exported="true", in your AndroidManifest.xml

eg:

<activity
            android:name=".MainActivity"
            android:exported="true">
        </activity>
  • Related