From b1e423b7a596354f866ecf0a858e9e350e4a6d42 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Tue, 6 Feb 2018 15:57:03 -0200 Subject: [PATCH] Fix push for iOS --- app/push.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/push.js b/app/push.js index 6c0687d8b..fa135d155 100644 --- a/app/push.js +++ b/app/push.js @@ -4,10 +4,10 @@ import EJSON from 'ejson'; import { goRoom } from './containers/routes/NavigationService'; const handleNotification = (notification) => { - if (notification.usernInteraction) { + if (!notification.userInteraction) { return; } - const { rid, name } = EJSON.parse(notification.ejson); + const { rid, name } = EJSON.parse(notification.ejson || notification.data.ejson); return rid && name && goRoom({ rid, name }); }; PushNotification.configure({