Open
Description
Report
- I have searched existing issues and this is not a duplicate.
Environment
- Platforms: iOS
- iOS version: 13.5
Issues and Steps to Reproduce
- Register for notifications and fully close the app.
- You will still get notifications but when you click on them your app will open but 'notification' event won't fire.
Expected Behavior
-'notification' event should be fire.
Actual Behavior
-You received a notification with the app fully closed (not in background) and it will take you to your app main screen and won't execute any custom logic you had put on your listener for 'notification' event.
Link to Code
// notification: Fired when a remote notification is received. This won't work
IOSNotificationHub.addEventListener('notification', this._handlerRemoteNotification);
// notification: Fired when app is fresh opened from remote notification. This is a current workaround you can use, call getInitialNotification on your app initial load and check whether there is a notification.
IOSNotificationHub.getInitialNotification().then(notification => notification && this._handlerRemoteNotification(notification));