react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

In Android Manifest File 3 <receiver> should android:exported="true"

Open hdwts opened this issue 1 year ago • 0 comments

Feature Request

In Android Manifest File 3rd <receiver> should android:exported="true" for android 12 & higher

Why it is needed

  • What went wrong: Execution failed for task ':app:processDebugMainManifest'.

Manifest merger failed : android:exported needs to be explicitly specified for element <receiver#com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

Possible implementation

Add android:exported="true" in 3rd receiver

Code sample

<receiver android:exported="true" android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver">

hdwts avatar Jul 31 '24 11:07 hdwts