io.intercom.android.sdk.fcm.IntercomFcmMessengerService: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]
I know I have to add something in the manifest similar to this but still not finding it
<receiver android:name="" android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</receiver>
In Android 11 and lower, when declaring an
Activity,Service, orBroadcastreceiver inAndroidManifest, you did not explicitly declareandroid:exported. Since the default value isexported=true, you only need to declareexported=falsewhen you do not want to disclose to the outside.For example:
Android 12 Changes: Explicit declaration of exported Apps that set SDK API 31 (android 12) as Target sdk on Android 12 devices must explicitly declare exported in components such as Activity that declared intent-filter.
For example,you must explicitly declare exported as follows:
In a word,
android:exported="true"or"android:exported="false"must be added to allreceivers,services, andactivitytags with intent-filters inside them.Note:
You can find the
AndroidManifest.xmlin folderobjof your app. My Folder isMyAndroidProject\obj\Debug\120\.After finding file
AndroidManifest.xml, you can recheck if you have added tagandroid:exportedto all of yourreceivers,services, andactivity.