-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Android app is reloaded when I tap on local push notification #2126
Comments
Hi, |
Not working that solution |
@react5Moon Is your app reloading when you tap on local notification? |
Yes |
@react5Moon This is how I have done configuration
This is how I implemented local notification
This is the change I have done to SplashScreenActivity.java
Am I missing anything here to reload the app when tapped on local notification? |
@react5Moon Can you please check my above comment? |
yes It was mistake in my code. I have put some wrong condition when app come from background. and when you click on notification app will go in background. Thanks for your response. |
I am not really sure what your were talking about in this comment. Can you please let me know what's preventing from reloading the app when tapped on foreground notification? |
Hi @react5Moon |
Sharing in case anyone is still facing the issue, I faced exact issue posted by original author @react5Moon @Yandamuri but I am using react-native-notifications library. I am not sure if this library has a patch released but this is how I resolved the issue. My issue was - I post a local notification when Android received a remote push and app is on foreground. Clicking on it restarts the App entirely. https://gist.github.com/ilight/be7141f45f15e39b6fccfe46ca6e3829 NOTE:- You might have to change the paths according to the library with which you are facing the issue. |
My react-native android app is automatic reload when open local push-notification tap when app in foreground
react-native :0.61.5
react-native-push-notification: 7.4.0
The text was updated successfully, but these errors were encountered: