Service Extension 无法接受到极光网页端发出的mutable-content推送

kobunketsu
9年前 1.4k 0

客户端配置了NotificationService.h的service extension. 调试NotificationService所在的项目,挂上了主App, 启动后App退到后台。
随后在网页端发出了推送,Extras 信息{"xxx":"xxx","ios":{"badge":"1","sound":"default","mutable-content":1}}
但是客户端断点跑不到NotificationService.m的

  • (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler;
    查看网页端,显示推送结果已经发送,但是客户端没有收到。
    之前成功接受过一次,之后尝试了很多次都没有收到。请问这可能是什么原因导致的。

2个回答

热门排序
  • 普通情况的extension中的断点是 我先尝试创建了个share extension,无果,停在waiting to attach上 然后尝试了Debug -> Attach to Process -> 的方法。这个方法下 展示全部
  • 请先提供一下该app的registrationID和消息的msgid,我查询一下该消息是否推送中出现错误