Commit d29510ac by Sebastián Katzer

Merge pull request #169 from ginovva320/patch-1

Update to LocalNotification.cancel()
parents 1f208776 da1f1d41
...@@ -186,7 +186,7 @@ public class LocalNotification extends CordovaPlugin { ...@@ -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();
......
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