开发者社区 问答 正文

【阿里推送】不走onNotificationReceivedInApp回调

我创建了自定义通知样式,并且设置推送应用内到达不创建通知弹窗

 BasicCustomPushNotification notification = new BasicCustomPushNotification();
    notification.setBuildWhenAppInForeground(false);
    LogUtil.e("MyMessageIntentService", "-------" + notification.isBuildWhenAppInForeground());
    boolean b = CustomNotificationBuilder.getInstance().setCustomNotification(1, notification);
    LogUtil.e("MyMessageIntentService", "-------" + b);

为啥还是不走onNotificationReceivedInApp回调

展开
收起
1391700971358602 2017-09-14 09:25:47 4071 分享 版权
2 条回答
写回答
取消 提交回答
  • 同样问题 求解

    2019-07-17 21:35:28
    赞同 展开评论
  • 同样的问题,请问后来解决没?

    2019-07-17 21:35:28
    赞同 展开评论
问答地址: