| | |
| | | |
| | | using System;
|
| | | using Android.App; |
| | | using Android.Content; |
| | | using CN.Jpush.Android.Api; |
| | | using CN.Jpush.Android.Service; |
| | |
| | | /// <param name="notificationMessage"></param> |
| | | public override void OnNotifyMessageOpened(Context context, NotificationMessage notificationMessage) |
| | | { |
| | | |
| | | |
| | | //2020-12-23 解决点击通知栏打开不了APP问题 |
| | | //base.OnNotifyMessageOpened(context, notificationMessage); |
| | | OpenNotification(context, notificationMessage); |
| | | OpenNotification(context, notificationMessage,true); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <param name="context"></param> |
| | | /// <param name="notificationMessage"></param> |
| | | public static void OpenNotification(Context context, NotificationMessage notificationMessage) |
| | | public static void OpenNotification(Context context, NotificationMessage notificationMessage, bool isNotification = false) |
| | | {
|
| | | try |
| | | { |
| | |
| | | { |
| | | Title = notificationMessage.NotificationTitle, |
| | | Content = notificationMessage.NotificationContent, |
| | | Extras = notificationMessage.NotificationExtras |
| | | Extras = notificationMessage.NotificationExtras, |
| | | isNotificationGoing = isNotification |
| | | }; |
| | | |
| | | var jpushExpandData = GetJPushExpandData(pushMes); |