Loading src/android/com/adobe/phonegap/push/GCMIntentService.java +3 −1 Changes for src/android/com/adobe/phonegap/push/GCMIntentService.java: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.util.Random; import org.json.JSONException; import org.json.JSONObject; Loading Loading @@ -93,7 +94,8 @@ public class GCMIntentService extends GCMBaseIntentService { notificationIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); notificationIntent.putExtra("pushBundle", extras); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT); int requestCode = new Random().nextInt(); PendingIntent contentIntent = PendingIntent.getActivity(this, requestCode, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT); int defaults = Notification.DEFAULT_ALL; Loading Loading
src/android/com/adobe/phonegap/push/GCMIntentService.java +3 −1 Changes for src/android/com/adobe/phonegap/push/GCMIntentService.java: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.util.Random; import org.json.JSONException; import org.json.JSONObject; Loading Loading @@ -93,7 +94,8 @@ public class GCMIntentService extends GCMBaseIntentService { notificationIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); notificationIntent.putExtra("pushBundle", extras); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT); int requestCode = new Random().nextInt(); PendingIntent contentIntent = PendingIntent.getActivity(this, requestCode, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT); int defaults = Notification.DEFAULT_ALL; Loading