1、registerForRemoteNotifications 注册APNS服务不成功
2、device token上传不成功
3、用户没有允许通知权限
4、用户开启了定时推送:设置 --> 通知 --> 定时推送摘要
5、用户在投屏时(共享屏幕),没有开启允许通知开关:设置 --> 通知 --> 屏幕共享
6、对照苹果开发文档比对服务器的格式: Payload: developer.apple.com/library/arc…
APNS API: developer.apple.com/library/arc…
比如在APP后台运行收不到didReceiveRemoteNotification回调:是因为没有设置 "content-available": 1,
{
"aps": {
"content-available": 1,
// 其他通知内容
}
}