From 1d1a56ad3e4f1a0fb443860eb3bc3e36b45b3049 Mon Sep 17 00:00:00 2001 From: Pranjal Jain Date: Sun, 29 Jul 2018 06:25:08 +0530 Subject: [PATCH] fix(notifications): Fix alertOnlyOnce in android notifications --- .../firebase/notifications/DisplayNotificationTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java b/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java index ffc3c5d1..c1cebe80 100644 --- a/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java +++ b/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java @@ -192,7 +192,7 @@ public class DisplayNotificationTask extends AsyncTask { nb = nb.setOngoing(android.getBoolean("ongoing")); } if (android.containsKey("onlyAlertOnce")) { - nb = nb.setOngoing(android.getBoolean("onlyAlertOnce")); + nb = nb.setOnlyAlertOnce(android.getBoolean("onlyAlertOnce")); } if (android.containsKey("people")) { List people = android.getStringArrayList("people");