Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotificationService不起作用 #5

Open
AgoniNemo opened this issue Jun 4, 2018 · 1 comment
Open

NotificationService不起作用 #5

AgoniNemo opened this issue Jun 4, 2018 · 1 comment

Comments

@AgoniNemo
Copy link

系统:iOS 11.2
推送:极光推送 3.0.5
1.在真机上运行主app
2.创建NotificationService
3.运行NotificationService的target
4.推送通知

PS:主app的Push Notifications ,Background Modes里的Remote notifications已经打开

app进入后台,极光代理方法收到推送,但是没有执行NotificationService方法。

@AgoniNemo AgoniNemo reopened this Sep 26, 2018
@RunOfTheSnail
Copy link
Owner

检查一下推送的json内容,有没有"mutable-content":1,

格式如下:
{
"aps":{
"alert":{
"title":"iOS 10 title",
"subtitle":"iOS 10 subtitle",
"body":"iOS 10 body"
},
"mutable-content":1,
"category":"saySomethingCategory",
"sound":"default",
"badge":3
}
}

还有,刚开始不要打断点,打断点可能也会收不到推送

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants