Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: 'onNotification' not executing when app is closed and clicked to notification

I am using react-native-pushnotification. here is the module link https://github.com/zo0r/react-native-push-notification in ios notifications working fine when in background and foreground also, but in android foreground it is working fine, But in background i got the notification, when click on that notification app getting relaunch and not showing any alert in android,

  1. In iOS these functionalities are working fine. But in android i am facing this problem

Can any one give me some suggestion that how to resolve it, Any help much appreciated.

like image 675
Hussian Shaik Avatar asked Dec 28 '17 07:12

Hussian Shaik


People also ask

Why might push notifications stop working in Android Studio?

Settings > Sounds & Vibration > Do Not Disturb: if this setting is enabled, Push Notifications will not be received. Make sure this is disabled. Settings > General > Background App Refresh: this setting allows the app to run in the background and must be turned on.


1 Answers

To show alert in android : in your android device -> settings -> App Notification -> select your app name and turn on all the show notifications. this will show alert. Hope this works.

like image 194
Pradnya Choudhari Avatar answered Oct 05 '22 22:10

Pradnya Choudhari