modify,new features

This commit is contained in:
Lincoln
2013-10-28 09:17:28 +08:00
parent 134d721aaf
commit d0997bed2e
3 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ public class MyReceiver extends BroadcastReceiver {
String msg = intent.getStringExtra(JPushInterface.EXTRA_MESSAGE);
Map<String,String> extras = getNotificationExtras(intent);
JPushPlugin.raisePush(msg, extras);
JPushPlugin.transmitPush(msg, extras);
}
private void handlingNotificationOpen(Context context,Intent intent){
String alert = intent.getStringExtra(JPushInterface.EXTRA_ALERT);
@@ -47,8 +47,8 @@ public class MyReceiver extends BroadcastReceiver {
launch.addCategory(Intent.CATEGORY_LAUNCHER);
launch.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_SINGLE_TOP);
JPushPlugin.incomingAlert = alert;
JPushPlugin.incomingExtras = extras;
JPushPlugin.notificationAlert = alert;
JPushPlugin.notificationExtras = extras;
context.startActivity(launch);
}