Commit 83846143 authored by Janne Saarela's avatar Janne Saarela

Fix Android rescheduled notifications firing immediately, ref:...

Fix Android rescheduled notifications firing immediately, ref: https://github.com/invertase/react-native-firebase/pull/1035/files
parent 9f9e6678
......@@ -58,11 +58,11 @@ public class FIRLocalMessagingHelper {
return;
}
long fireDate = Math.round(bundle.getDouble("fire_date"));
if(fireDate == 0){
fireDate = Math.round(bundle.getLong("fire_date"));
Long fireDate = bundle.getLong("fire_date", -1);
if (fireDate == -1) {
fireDate = (long) bundle.getDouble("fire_date", -1);
}
if (fireDate == 0) {
if (fireDate == -1) {
Log.e(TAG, "failed to schedule notification because fire date is missing");
return;
}
......
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