public override void OnNotifactionShowedResult(Context context,
                                                       XGPushShowedResult notifiShowedRlt)
        {
            if (context == null || notifiShowedRlt == null)
            {
                return;
            }

            /*
             * NotificationManager nm = (NotificationManager)context.GetSystemService("NOTIFICATION_SERVICE");
             * var no = XGPushManager.GetNotificationBuilder(context, 2);
             * no.SetTitle(notifiShowedRlt.Title);
             * nm.Notify(1111,no.BuildNotification(context));
             */
            //notifiShowedRlt.Notify();

            //XGPushManager.AddLocalNotification(context, new XGLocalMessage(){BuilderId = notifiShowedRlt.MsgId,Content = notifiShowedRlt.Title});

            String text = "通知被展示 ,title:" + notifiShowedRlt.Title
                          + ",content:" + notifiShowedRlt.Content
                          + ",custom_content:" + notifiShowedRlt.CustomContent;

            Log.Debug(LogTag, text);
            show(context, text);
        }
Exemplo n.º 2
0
 public override void OnNotifactionShowedResult(Context context, XGPushShowedResult notifiShowedRlt)
 {
 }