@@ -42,10 +42,10 @@ public class JPushReceiver extends JPushMessageReceiver {
4242
4343 private static Notification firmNotification = null ;
4444
45- public static void openFirmNotification (Activity activity ) {
45+ public static void openFirmNotification (Activity activity , Intent intent ) {
4646 Log .i (TAG , "openFirmNotification" );
4747 try {
48- Intent intent = activity .getIntent ();
48+ // Intent intent = activity.getIntent();
4949
5050 String data = null ;
5151 //获取华为平台附带的jpush信息
@@ -72,6 +72,7 @@ public static void openFirmNotification(Activity activity) {
7272 content ,
7373 extras
7474 );
75+ RNPushModule .onNotificationClick (firmNotification );
7576 JPushInterface .reportNotificationOpened (activity , msgId , whichPushSDK );
7677 } catch (Exception e ) {
7778 Log .e (TAG , "getIntent()" , e );
@@ -89,7 +90,9 @@ public void onNotifyMessageOpened(Context context, NotificationMessage msg) {
8990 Log .i (TAG , "onNotifyMessageOpened:" + msg );
9091 Intent intent = new Intent ();
9192 intent .setClassName (context .getPackageName (), context .getPackageName () + ".MainActivity" );
92- intent .setFlags (Intent .FLAG_ACTIVITY_NEW_TASK | Intent .FLAG_ACTIVITY_CLEAR_TOP );
93+ intent .setFlags (
94+ Intent .FLAG_ACTIVITY_NEW_TASK |
95+ Intent .FLAG_ACTIVITY_CLEAR_TOP );
9396 context .startActivity (intent );
9497
9598 String extras = "" ;
0 commit comments