Search code examples
androidcordovagradleionic-frameworkionic3

IONIC Cordova app is giving android exported error


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.


Solution

  • I have solved this by adding android:exported: true to manifest.xml

    <intent-filter android:exported="true" android:label="@string/launcher_name">

    Please note that this error is related to launcher activity intent only