草庐IT

handleBackgroundNotification

全部标签

ios - UrbanAirship 的 handleBackgroundNotification 的使用

我正在尝试使用UrbanAirship开发一个iOS应用程序。我收到推送通知,但在应用程序处于运行状态时无法调用任何委托(delegate)的背景。我(似乎错误地)假设来自UAPushNotificationDelegate的handleBackgroundNotificationAPI类会为我提供执行自定义操作的功能当应用程序处于后台时接收通知。他们的文档是这么说的:"处理背景通知:当应用程序在后台收到推送通知时调用-(void)handleBackgroundNotification:(NSDictionary*)notification参数通知thepushnotificatio