Android:exported property issue

I rebuilt my old ionic 5 cordova application but when I upload file on google platform, I receive this error:

You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported

I don’t understand how solve this issue

Could you please help me?

Thanks

If you target SDK 32, all activities, activity aliases, services or broadcast receivers with intent filter need to have “android:exported” set to true or false.
So some plugin you are using is defining one of those and have not updated the plugin to include the android:exported part.
You’ll have to search the plugin and update it yourself.

1 Like

it is very complicated for me to identify the plugin to update. can you give me some advice?

All’interno della cartella plugin ho trovato questo snippet

plugins\cordova-plugin-x-socialsharing\plugin.xml

<config-file target="AndroidManifest.xml" parent="/*/application">
  <receiver android:name="nl.xservices.plugins.ShareChooserPendingIntent" android:enabled="true" android:exported="true">
    <intent-filter>
      <action android:name="android.intent.action.SEND"/>
    </intent-filter>
  </receiver>
</config-file>

come posso aggiornarlo?

update to latest version of the plugin (version 6.0.4), it was updated 3 weeks ago fixing that issue

1 Like

Solved but I have the same issue on other project where this plugin not used. Nothing plugin used have receiver. How can I found it?

1 Like

i am facing same issue with phonegap.push.
activity after build its adding in AndroidManifest.xml but
service and receiver not adding for me