Commit 01f41d97 authored by Libin Lu's avatar Libin Lu

add local notification flag

parent be2beb58
......@@ -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);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment