From 21c684dbb7f632644747fa884c1b3f2bfd87f0a5 Mon Sep 17 00:00:00 2001 From: yogevbd Date: Fri, 9 Aug 2019 23:14:13 +0300 Subject: [PATCH] Fix missing badge in silent notification payload with no aps.alert --- lib/src/notification.ios.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/notification.ios.js b/lib/src/notification.ios.js index 39ee60c..0d9b58a 100644 --- a/lib/src/notification.ios.js +++ b/lib/src/notification.ios.js @@ -24,8 +24,7 @@ export default class IOSNotification { this._type = 'managed'; this._thread = notification.aps.thread; } else if ( - notification.aps && - notification.aps.alert) { + notification.aps) { // regular notification this._alert = notification.aps.alert; this._sound = notification.aps.sound; -- 2.26.2