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

Push Notifications not working above React Native 0.75 #2429

Open

Description

@mahishdino

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

Activity

  1. kartvya commented on Nov 5, 2024

    @kartvya

    Same issue my react native version 0.75.4

  2. kartvya commented on Nov 5, 2024

    @kartvya

    @mahishdino any solution?

  3. mahishdino commented on Nov 5, 2024

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

  4. kartvya commented on Nov 5, 2024

    @kartvya

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

  5. scissorstail commented on Nov 8, 2024

    @scissorstail

    In gradle.properties

    # Automatically convert third-party libraries to use AndroidX
    android.enableJetifier=true
    
  6. mahishdino commented on Nov 9, 2024

    @mahishdino
    Author

    In gradle.properties

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

    Will it work ?

  7. mahishdino commented on Nov 9, 2024

    @mahishdino
    Author

    In gradle.properties

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

    Will it work ? @scissorstail

  8. kartvya commented on Nov 11, 2024

    @kartvya

    Worked for me! TQ @scissorstail

  9. jirka-oone commented on Nov 11, 2024

    @jirka-oone

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

  10. VimukthiShohan commented on Nov 26, 2024

    @VimukthiShohan

    Worked like a charm. Thanks @jirka-oone

  11. psaisheela commented on Nov 27, 2024

    @psaisheela

    How to use this patch?

  12. mustafazeb381-123 commented on Nov 28, 2024

    @mustafazeb381-123

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions