iOS中APP在前台运行,我在个推上发推送消息,为什么不走application:(UIApplication )application didReceiveRemoteNotification:(NSDictionary )userInfo方法,
但是我把App压入后台,在个推上发推送消息,就走application:(UIApplication )application didReceiveRemoteNotification:(NSDictionary )userInfo方法?
求大神们,指点!
阿神2017-04-17 17:32:42
백그라운드에서 푸시할 때 다음 문장을 추가하지 않았나요? payload.setContentAvailable(1), 푸시 지침을 살펴보세요. https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual /RemoteNotificationsPG/ Chapters/ApplePushService.html