From 3f6009b680f90d887469e9338b59ba5a4d550565 Mon Sep 17 00:00:00 2001 From: Gleb Stiblo Date: Fri, 24 Mar 2017 19:36:47 +0600 Subject: [PATCH] Fix of "Key fire_date expected Long but value was a java.lang.Double" exception (#359) --- .../main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f223955..32d74c4 100644 --- a/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java +++ b/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java @@ -221,7 +221,7 @@ public class FIRLocalMessagingHelper { return; } - Long fireDate = bundle.getLong("fire_date", Math.round(bundle.getDouble("fire_date"))); + Long fireDate = Math.round(bundle.getDouble("fire_date")); if (fireDate == 0) { Log.e(TAG, "failed to schedule notification because fire date is missing"); return; -- 2.26.2