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

推送收不到的奇怪问题 #124

Closed
passol1988 opened this issue Jun 19, 2018 · 3 comments
Closed

推送收不到的奇怪问题 #124

passol1988 opened this issue Jun 19, 2018 · 3 comments
Labels

Comments

@passol1988
Copy link

passol1988 commented Jun 19, 2018

当我在自己AppDelegate(当然继承BHAppDelegate)里加上

[super application:application didFinishLaunchingWithOptions:launchOptions];

怎么都收不到推送,不加就能收到。不太懂其中的原理

@SoXeon
Copy link
Contributor

SoXeon commented Jun 24, 2018

你可以debug试一下

@conanwsz
Copy link

conanwsz commented Aug 1, 2018

跟推送相关的的确是不会走到BHAppDelegate里去。可以在AppDelegate中实现推送相关的delegate,然后手动调super方法。

@passol1988
Copy link
Author

@conanwsz 谢谢,在实际使用中也找到了。设置了UNUserNotificationCenter的代理通知会被接管。

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

No branches or pull requests

4 participants