Open kckunal2612 opened 6 years ago
What version of RN and react-native-fcm are you running? react-native: "0.50.3", react-native-fcm": "11.1.0
What device are you using? (e.g iOS9 emulator, Android 6 device)? - Android 6 Emulator (Marshmallow)
Is your app running in foreground, background or not running? - Running in Foreground
I am scheduling notifications as follows -
FCM.scheduleLocalNotification({ fire_date: new Date().getTime(), id: "UNIQ_ID_STRING", body: "BODY", show_in_foreground:true, title:"TITLE" });
However, I am not getting any notifications (which I should get immediately according to the value of fire_date set by me.
But when I run presentLocalNotification(), it immediately presents a notification.
FCM.presentLocalNotification({ fire_date: new Date().getTime(), id: "UNIQ_ID_STRING", body: "BODY", show_in_foreground:true, title:"TITLE" });
What could be the problem here ? I tried to replicate this with the Example Repo but it worked there. Are there any specific requirements to scheduling notifications ?
try add couple seconds for fire_date
What version of RN and react-native-fcm are you running? react-native: "0.50.3", react-native-fcm": "11.1.0
What device are you using? (e.g iOS9 emulator, Android 6 device)? - Android 6 Emulator (Marshmallow)
Is your app running in foreground, background or not running? - Running in Foreground
I am scheduling notifications as follows -
However, I am not getting any notifications (which I should get immediately according to the value of fire_date set by me.
But when I run presentLocalNotification(), it immediately presents a notification.
What could be the problem here ? I tried to replicate this with the Example Repo but it worked there. Are there any specific requirements to scheduling notifications ?