| | |
| | | Log.d(TAG, "onNotificationReceivedInApp:title=" + title |
| | | + " content=" + content + " extraMap=" + JSON.toJSONString(extraMap) + " openType=" |
| | | + openType + " openActivity=" + openActivity + " openUrl=" + openUrl); |
| | | // CustomNotification.getInstance().messageDataProcessing(context, title, content, JSON.toJSONString(extraMap)); |
| | | //如果在前台时,发送通知让消息列表更新,在后台是,这里不会执行,会执行VendorChannelActivity.onSysNoticeOpened()的方法 |
| | | CustomNotification.getInstance().messageDataProcessing(context, title, content, JSON.toJSONString(extraMap),CustomNotification.FromPush.AliYun); |
| | | } |
| | | |
| | | /** |
| | |
| | | public boolean showNotificationNow(Context context, Map<String, String> extraMap) { |
| | | //false表示拦截,true表示不拦截,请根据进行拦截,拦截后会执行到 onNotificationReceivedInApp |
| | | Log.d(TAG, "showNotificationNow:" + "extraMap=" + JSON.toJSONString(extraMap)); |
| | | return !CustomNotification.getInstance().isAppInForegroundOrIsShowUniMP(context); |
| | | return !CustomNotification.getInstance().isAppInForeground(context); |
| | | // return false; |
| | | } |
| | | } |