推送收不到的奇怪问题
Closed this issue · 3 comments
passol1988 commented
当我在自己AppDelegate(当然继承BHAppDelegate)里加上
[super application:application didFinishLaunchingWithOptions:launchOptions];
怎么都收不到推送,不加就能收到。不太懂其中的原理
SoXeon commented
你可以debug试一下
conanwsz commented
跟推送相关的的确是不会走到BHAppDelegate里去。可以在AppDelegate中实现推送相关的delegate,然后手动调super方法。
passol1988 commented
@conanwsz 谢谢,在实际使用中也找到了。设置了UNUserNotificationCenter
的代理通知会被接管。