Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Push Notifications not working above React Native 0.75 #2429

Open
mahishdino opened this issue Nov 3, 2024 · 12 comments
Open

Push Notifications not working above React Native 0.75 #2429

mahishdino opened this issue Nov 3, 2024 · 12 comments

Comments

@mahishdino
Copy link

mahishdino commented Nov 3, 2024

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
@kartvya
Copy link

kartvya commented Nov 5, 2024

Same issue my react native version 0.75.4

@kartvya
Copy link

kartvya commented Nov 5, 2024

@mahishdino any solution?

@mahishdino
Copy link
Author

@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

@kartvya
Copy link

kartvya commented Nov 5, 2024

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

@scissorstail
Copy link

scissorstail commented Nov 8, 2024

In gradle.properties

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

@mahishdino
Copy link
Author

In gradle.properties

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

Will it work ?

@mahishdino
Copy link
Author

In gradle.properties

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

Will it work ? @scissorstail

@kartvya
Copy link

kartvya commented Nov 11, 2024

Worked for me! TQ @scissorstail

@jirka-oone
Copy link

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

@VimukthiShohan
Copy link

Worked like a charm. Thanks @jirka-oone

@psaisheela
Copy link

How to use this patch?

@mustafazeb381-123
Copy link

mustafazeb381-123 commented Nov 28, 2024

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants