fix android openNotification twice

This commit is contained in:
darkterrorooo
2015-12-09 17:55:10 +08:00
parent 0da9f0ed26
commit 42d64ca2f0
2 changed files with 17 additions and 8 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ public class MyReceiver extends BroadcastReceiver {
Intent launch = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
launch.addCategory(Intent.CATEGORY_LAUNCHER);
launch.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_SINGLE_TOP);
JPushPlugin.bOpenNotificationAlert = true;
JPushPlugin.openNotificationAlert = alert;
JPushPlugin.openNotificationExtras = extras;