Please provide the following:
- SDK Version: 37
- Platforms(Android/iOS/web/all):Android /Ios
componentDidMount() {
this.registerForPushNotificationsAsync();
this._notificationSubscription = Notifications.addListener(this._handleNotification);
}
_handleNotification = notification => {
Vibration.vibrate();
console.log(notification);
console.log("hello")
this.setState({ notification: notification });
};
When the app is foregrounded the handle function is executed and the console.log is executed but when the app is closed the handle function is not executed at all?
Can anyone help?