0
我有與在設備上收到通知,但有效載荷用戶信息始終是零APNS一個問題:APNS總是收到,但有效載荷始終爲零
- (void)application:(UIApplication*)application
didReceiveRemoteNotification:(NSDictionary *)userInfo
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
我可以在調試這個顯示總是調用,但userInfo始終爲零。這是我通過PyAPNS發送有效載荷:
{"aps":{"content-available":1},"extradata":"extra data string"}
這將無能爲力,調試器顯示接收器執行,但用戶信息是零。如果我背景的應用程序,並把這個分組:
{"aps":{"alert":"My Alert", "content-available":1},"extradata":"extra data string"}
然後警報將顯示在通知區域,並執行接收器,但用戶信息仍然是零。
有沒有人遇到類似的東西?