[android,js] misc messaging

This commit is contained in:
Salakar
2017-03-21 11:26:16 +00:00
parent 605a7515aa
commit 7650ae42e4
2 changed files with 17 additions and 5 deletions

View File

@@ -219,7 +219,8 @@ public class RNFirebaseLocalMessagingHelper {
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;