diff --git a/index.js b/index.js index 726995a6b514ec4bc961d68540fd7231df2a1988..14203c22083f1ae6afaa7c31613fbca5ddb47923 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); };