From 9144314eac825d92f8fa9b3bff7e4307cd58eeff Mon Sep 17 00:00:00 2001 From: Dariusz Luksza Date: Wed, 11 Jul 2018 17:39:32 +0200 Subject: [PATCH] Warn about changing notification schedule date --- .../firebase/notifications/RNFirebaseNotificationManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java b/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java index a2e96e2d..655fd61e 100644 --- a/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java +++ b/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java @@ -361,6 +361,7 @@ public class RNFirebaseNotificationManager { // If fireDate you specify is in the past, the alarm triggers immediately. // So we need to adjust the time for correct operation. if (fireDate < System.currentTimeMillis()) { + Log.w(TAG, "Scheduled notification date is in the past, will adjust it to be in future"); Calendar newFireDate = Calendar.getInstance(); Calendar currentFireDate = Calendar.getInstance(); currentFireDate.setTimeInMillis(fireDate);