From 01f41d976c59182958aec59f50175f03b7e1ec1a Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Wed, 21 Sep 2016 22:49:06 -0400 Subject: [PATCH] add local notification flag --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 726995a..14203c2 100644 --- a/index.js +++ b/index.js @@ -23,6 +23,7 @@ FCM.requestPermissions = () => { }; FCM.presentLocalNotification = (details) => { + details.local_notification = true; RNFIRMessaging.presentLocalNotification(details); }; @@ -30,6 +31,7 @@ FCM.scheduleLocalNotification = function(details) { if (!details.id) { throw new Error("id is required for scheduled notification"); } + details.local_notification = true; RNFIRMessaging.scheduleLocalNotification(details); }; -- 2.26.2