REF: processing push notifications

This commit is contained in:
Overtorment 2021-01-01 23:41:49 +00:00
parent f28a100a80
commit e26ca8372d

1
App.js
View file

@ -70,7 +70,6 @@ const App = () => {
const payload = Object.assign({}, notification, notification.data);
if (notification.data && notification.data.data) Object.assign(payload, notification.data.data);
payload.foreground = true;
payload.userInteraction = false;
await Notifications.addNotification(payload);
// if user is staring at the app when he receives the notification we process it instantly