diff --git a/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java b/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java index 19f16f51068ff5b88d6b96dcf60b7aacfc3fd83a..a71173351f9065654d69f93c939af943176a7d02 100644 --- a/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java +++ b/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java @@ -58,7 +58,10 @@ public class FIRLocalMessagingHelper { return; } - Long fireDate = Math.round(bundle.getDouble("fire_date", bundle.getLong("fire_date"))); + long fireDate = Math.round(bundle.getDouble("fire_date")); + if(fireDate == 0){ + fireDate = Math.round(bundle.getLong("fire_date")); + } if (fireDate == 0) { Log.e(TAG, "failed to schedule notification because fire date is missing"); return;