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

Push Notifications not working above React Native 0.75

Open mahishdino opened this issue 1 year ago • 12 comments

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 Screenshot 2024-11-03 at 9 32 46 AM

Steps To Reproduce

  1. Install react-native-push-notification library
  2. Then Run the app, you can the find the error

mahishdino avatar Nov 03 '24 04:11 mahishdino

Same issue my react native version 0.75.4

kartvya avatar Nov 05 '24 06:11 kartvya

@mahishdino any solution?

kartvya avatar Nov 05 '24 06:11 kartvya

@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

mahishdino avatar Nov 05 '24 06:11 mahishdino

Thank you for your reply @mahishdino, is there any patch for it?

kartvya avatar Nov 05 '24 06:11 kartvya

In gradle.properties

# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

scissorstail avatar Nov 08 '24 06:11 scissorstail

In gradle.properties

# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

Will it work ?

mahishdino avatar Nov 09 '24 18:11 mahishdino

In gradle.properties

# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

Will it work ? @scissorstail

mahishdino avatar Nov 09 '24 18:11 mahishdino

Worked for me! TQ @scissorstail

kartvya avatar Nov 11 '24 08:11 kartvya

This patch works without enabling enableJetifier=true react-native-push-notification+8.1.1.patch

jirka-oone avatar Nov 11 '24 09:11 jirka-oone

Worked like a charm. Thanks @jirka-oone

VimukthiShohan avatar Nov 26 '24 12:11 VimukthiShohan

How to use this patch?

psaisheela avatar Nov 27 '24 17:11 psaisheela

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 -->

mustafazeb381-123 avatar Nov 28 '24 08:11 mustafazeb381-123