Loading src/android/com/plugin/gcm/PushHandlerActivity.java +9 −0 Changes for src/android/com/plugin/gcm/PushHandlerActivity.java: 9 added lines, 0 removed lines. Original line number Diff line number Diff line package com.plugin.gcm; import android.app.Activity; import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Bundle; Loading Loading @@ -60,4 +62,11 @@ public class PushHandlerActivity extends Activity startActivity(launchIntent); } @Override protected void onResume() { super.onResume(); final NotificationManager notificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.cancelAll(); } } No newline at end of file src/android/com/plugin/gcm/PushPlugin.java +0 −1 Changes for src/android/com/plugin/gcm/PushPlugin.java: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -139,7 +139,6 @@ public class PushPlugin extends CordovaPlugin { public void onResume(boolean multitasking) { super.onResume(multitasking); gForeground = true; GCMIntentService.cancelNotification(getApplicationContext()); } @Override Loading Loading
src/android/com/plugin/gcm/PushHandlerActivity.java +9 −0 Changes for src/android/com/plugin/gcm/PushHandlerActivity.java: 9 added lines, 0 removed lines. Original line number Diff line number Diff line package com.plugin.gcm; import android.app.Activity; import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Bundle; Loading Loading @@ -60,4 +62,11 @@ public class PushHandlerActivity extends Activity startActivity(launchIntent); } @Override protected void onResume() { super.onResume(); final NotificationManager notificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.cancelAll(); } } No newline at end of file
src/android/com/plugin/gcm/PushPlugin.java +0 −1 Changes for src/android/com/plugin/gcm/PushPlugin.java: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -139,7 +139,6 @@ public class PushPlugin extends CordovaPlugin { public void onResume(boolean multitasking) { super.onResume(multitasking); gForeground = true; GCMIntentService.cancelNotification(getApplicationContext()); } @Override Loading