Fix push for iOS

This commit is contained in:
Rodrigo Nascimento 2018-02-06 15:57:03 -02:00
parent 9f96136571
commit b1e423b7a5
No known key found for this signature in database
GPG Key ID: CFCE33B7B01AC335
1 changed files with 2 additions and 2 deletions

View File

@ -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({