Commit 50245096 authored by Libin Lu's avatar Libin Lu Committed by GitHub

don't send notif only for scheduled local notif

parent 03e1a62b
......@@ -186,10 +186,12 @@ public class FIRLocalMessagingHelper {
notification.setDefaults(NotificationCompat.DEFAULT_LIGHTS);
}
Log.d(TAG, "broadcast intent before showing notification");
if(bundle.containsKey("fire_date")) {
Log.d(TAG, "broadcast intent if it is a scheduled notification");
Intent i = new Intent("com.evollu.react.fcm.ReceiveLocalNotification");
i.putExtras(bundle);
mContext.sendOrderedBroadcast(i, null);
}
if(!mIsForeground || bundle.getBoolean("show_in_foreground")){
Intent intent = new Intent();
......
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