Loading src/android/Receiver.java +4 −1 Changes for src/android/Receiver.java: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ package de.appplant.cordova.plugin.localnotification; import java.util.Calendar; import java.util.Random; import org.json.JSONException; import org.json.JSONObject; Loading Loading @@ -135,7 +136,9 @@ public class Receiver extends BroadcastReceiver { .putExtra(OPTIONS, options.getJSONObject().toString()) .setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); PendingIntent contentIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); int requestCode = new Random().nextInt(); PendingIntent contentIntent = PendingIntent.getActivity(context, requestCode, intent, PendingIntent.FLAG_CANCEL_CURRENT); return notification.setContentIntent(contentIntent); } Loading Loading
src/android/Receiver.java +4 −1 Changes for src/android/Receiver.java: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ package de.appplant.cordova.plugin.localnotification; import java.util.Calendar; import java.util.Random; import org.json.JSONException; import org.json.JSONObject; Loading Loading @@ -135,7 +136,9 @@ public class Receiver extends BroadcastReceiver { .putExtra(OPTIONS, options.getJSONObject().toString()) .setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); PendingIntent contentIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); int requestCode = new Random().nextInt(); PendingIntent contentIntent = PendingIntent.getActivity(context, requestCode, intent, PendingIntent.FLAG_CANCEL_CURRENT); return notification.setContentIntent(contentIntent); } Loading