didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler 未调用
didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler not called
我正在尝试推送通知并想增加徽章数量,但
didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
未在非活动状态或后台状态下调用。
我目前在 iOS 9 和 Xcode 7.3 工作。
检查一次您是否启用
方法调用后
didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
同时检查thislink也
在您的通知负载中,您必须发送 "content-available":1
此外,此博客 post 会对您有所帮助。 http://samwize.com/2015/08/07/how-to-handle-remote-notification-with-background-mode-enabled/
我正在尝试推送通知并想增加徽章数量,但
didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
未在非活动状态或后台状态下调用。
我目前在 iOS 9 和 Xcode 7.3 工作。
检查一次您是否启用
方法调用后
didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
同时检查thislink也
在您的通知负载中,您必须发送 "content-available":1
此外,此博客 post 会对您有所帮助。 http://samwize.com/2015/08/07/how-to-handle-remote-notification-with-background-mode-enabled/