在我的应用程序中,我有两种类型的推送通知:带有
我还定义了两个代理方法
但是当没有
如何解决这个问题?为什么我不能为后台和常规推送设置两个代理方法?
content-available = 1
标志的远程静默通知和常规推送通知,其中包括body
、badge
和其他内容。我还定义了两个代理方法
didReceiveRemoteNotification:fetchCompletionHandler
和通常的didReceiveRemoteNotification
。但是当没有
content-available
标志的推送通知到达时,会调用didReceiveRemoteNotification:fetchCompletionHandler
,而不是didReceiveRemoteNotification
。如何解决这个问题?为什么我不能为后台和常规推送设置两个代理方法?
remote-notification
背景模式。 - vokilamdidReceiveRemoteNotification:fetchCompletionHandler
而不是didReceiveRemoteNotification
,并且没有办法改变这一点,对吗? - MainstreamDeveloper00