wix / react-native-notifications

React Native Notifications
MIT License
3.25k stars 764 forks source link

When I click on the notification on my android app, entire app reloads #1039

Closed PulasthiAbey closed 5 months ago

PulasthiAbey commented 5 months ago

I have a React Native app with RN version "react-native": "0.72.7", and use react-native-notification with version ^5.1.0 for my notification service for both Android and iOS applications.

The notification service works fine in iOS without any issues. The notification service for the Android app has some problems.

I am dealing with a reloading issue for Android versions 11 and above. Following is the scenario for the bug.

Steps

Accepted Criteria

Can anybody give me some sense into why this is happening?

alex-crookes commented 5 months ago

What do you have in your Manifest for hte Launch mode of the Activity? If it's singleTask (default, IIRC), you maybe able to try SingleTop

PulasthiAbey commented 5 months ago

@alex-crookes I tried the SingleTop

Android resource linking failed error: 'SingleTop' is incompatible with attribute launchMode (attr) enum [singleInstance=3, singleInstancePerTask=4, singleTask=2, singleTop=1, standard=0]

I am getting this when I try SingleTop. I am using singleTask at the moment

PulasthiAbey commented 5 months ago

Found a solution for this in a patch for react-native-notification.

Find the patch here

PulasthiAbey commented 5 months ago

Resolved