react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

When open local notification, app will open again (Version 4.2.1)

Open nmluancs opened this issue 4 years ago • 14 comments

After you fixed Android API 31 issues (Notification trampoline), now when i open a local notification, app will be cloded and open again. It happens not only on android 12 but android 11.

I think the problem comes from line 17 - 22 https://github.com/wix/react-native-notifications/blob/master/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/NotificationIntentAdapter.java

Please have a look. Thank you

nmluancs avatar Feb 21 '22 10:02 nmluancs

@nmluancs i have the same problem on android 12 and 11. Tested on emulator and real devices (Samsung S10, S20).

"react-native": "0.67.2" "react-native-notifications": "^4.2.0"

claudiozam avatar Feb 22 '22 17:02 claudiozam

answered in #828

DanielEliraz avatar Feb 26 '22 21:02 DanielEliraz

@DanielEliraz I'm still experiencing this with version 4.2.3, also I don't see local/foreground notifications mentioned anywhere in #828, is this a different issue?

ejunebug avatar Mar 04 '22 00:03 ejunebug

I still got the problem with version 4.2.3 :(

nmluancs avatar Mar 07 '22 03:03 nmluancs

please try it with 4.2.4.

DanielEliraz avatar Mar 09 '22 14:03 DanielEliraz

@DanielEliraz Hmm, I'm still seeing the same behavior on 4.2.4

ejunebug avatar Mar 10 '22 02:03 ejunebug

@hankhester, the trampoline error is only when targetSkdVersion > 30. current React Native targetSkdVersion is 30 so we're good in that. which targetSkdVersion do you use?

DanielEliraz avatar Mar 10 '22 08:03 DanielEliraz

@DanielEliraz my targetSdkVersion is 31 - behavior is reproduced on emulators running both api 30 and 32

ejunebug avatar Mar 10 '22 20:03 ejunebug

Still got the problem on version 4.2.4 :(

nmluancs avatar Mar 11 '22 03:03 nmluancs

@DanielEliraz any update on this? Looks like react-native recently bumped the targetSdkVersion to 31

ejunebug avatar Apr 12 '22 01:04 ejunebug

Just updating for the record, still experiencing this on 4.3.1

ejunebug avatar Apr 25 '22 19:04 ejunebug

still have same issue on latest verions

AftabUfaq avatar Aug 16 '22 14:08 AftabUfaq

Still experiencing it, any new thoughts?

SchneiderOr avatar Sep 22 '22 09:09 SchneiderOr

Can we reopen this? The issue persists in 4.3.3 with targetSdkVersion = 31.

pennersr avatar Dec 22 '22 20:12 pennersr