react-native-push-notification
react-native-push-notification copied to clipboard
Push Notifications not working above React Native 0.75
Bug
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Steps To Reproduce
- Install react-native-push-notification library
- Then Run the app, you can the find the error
Same issue my react native version 0.75.4
@mahishdino any solution?
@mahishdino any solution? Actually I want local notifications that's made native module for it. But I m on it, sadly this library has no update in 3 years. If we have any solution also it would be a patch for it.@kartvya
Thank you for your reply @mahishdino, is there any patch for it?
In gradle.properties
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
In gradle.properties
# Automatically convert third-party libraries to use AndroidX android.enableJetifier=true
Will it work ?
In gradle.properties
# Automatically convert third-party libraries to use AndroidX android.enableJetifier=trueWill it work ? @scissorstail
Worked for me! TQ @scissorstail
This patch works without enabling enableJetifier=true
react-native-push-notification+8.1.1.patch
Worked like a charm. Thanks @jirka-oone
How to use this patch?
same problem in 0.76 version but i will integrate the patches for now but need to update the package and also the documents on npm package because when use the new version of android like 14 in 0.74 or less version it also cause error so we integrate this this in receiver
<receiver android:exported="false" android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver"> <!-- use this => android:exported="false" in reciver because it willl cause error if u didnot add this -->