|
@@ -186,7 +186,7 @@ public class LocalNotification extends CordovaPlugin {
|
|
|
Intent intent = new Intent(context, Receiver.class)
|
|
Intent intent = new Intent(context, Receiver.class)
|
|
|
.setAction("" + notificationId);
|
|
.setAction("" + notificationId);
|
|
|
|
|
|
|
|
- PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
|
|
|
|
|
|
|
+ PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, 0);
|
|
|
AlarmManager am = getAlarmManager();
|
|
AlarmManager am = getAlarmManager();
|
|
|
NotificationManager nc = getNotificationManager();
|
|
NotificationManager nc = getNotificationManager();
|
|
|
|
|
|
|
@@ -354,4 +354,4 @@ public class LocalNotification extends CordovaPlugin {
|
|
|
protected static NotificationManager getNotificationManager () {
|
|
protected static NotificationManager getNotificationManager () {
|
|
|
return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
|
return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|