Skip to content
Snippets Groups Projects
Unverified Commit b8d9848e authored by Diego Mello's avatar Diego Mello Committed by GitHub
Browse files

[FIX] Endless "connecting" on notification tap (#1121)

parent 2d3894cc
No related branches found
No related tags found
No related merge requests found
import NotificationsIOS from 'react-native-notifications';
import reduxStore from '../../lib/createStore';
class PushNotification {
constructor() {
this.onRegister = null;
......@@ -11,7 +13,10 @@ class PushNotification {
});
NotificationsIOS.addEventListener('notificationOpened', (notification, completion) => {
this.onNotification(notification);
const { background } = reduxStore.getState().app;
if (background) {
this.onNotification(notification);
}
completion();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment