Commit 1ca8367d authored by Libin Lu's avatar Libin Lu Committed by GitHub

Merge pull request #730 from germanst/fix/android-schedule-after-reboot

fix fail notification schedule after reboot on Android
parents 2c385417 bf37c6e9
...@@ -58,7 +58,7 @@ public class FIRLocalMessagingHelper { ...@@ -58,7 +58,7 @@ public class FIRLocalMessagingHelper {
return; return;
} }
Long fireDate = Math.round(bundle.getDouble("fire_date")); Long fireDate = Math.round(bundle.getDouble("fire_date", bundle.getLong("fire_date")));
if (fireDate == 0) { if (fireDate == 0) {
Log.e(TAG, "failed to schedule notification because fire date is missing"); Log.e(TAG, "failed to schedule notification because fire date is missing");
return; 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