2
A
回答
2
在推送通知,您就可以將被轉移到你的應用程序上打開一個「有效載荷」:
您的應用程序將獲得「用戶信息」(NSDictionary中)作爲參數去didFinishLaunchingWithOptions()方法。
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
Parameters
application
The application interested in the remote notification.
userInfo
A dictionary that contains information related to the remote notification, potentially including a badge number for the application icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iPhone OS converts to anNSDictionary object; the dictionary may contain only property-list objects plus NSNull.
要設置有效負載,請參閱Apple Push Notification Service Programming Guide。基本上,您可以在那裏發送任何類型的信息,以幫助應用程序將用戶路由到內部的正確位置。
相關問題
- 1. iPhone pushNotification DeviceToken - 如何「解密」
- 2. iPhone PushNotification註冊多次
- 3. Bing地圖iPhoneSDK
- 4. iphonesdk printing文檔
- 5. 誓言+ Twitter的IPhoneSDK
- 6. HTML到PDF轉換iPhoneSDK
- 7. 無法獲得Pushnotification
- 8. Ionic PushNotification
- 9. 爲PushNotification
- 10. iphonesdk facebook圖像共享
- 11. iphoneSDK和NSXMLParser問題
- 12. 如何知道iPhoneSDK
- 13. PushNotification Alert標題
- 14. GCM和quickblox pushnotification
- 15. 如何在Iphonesdk中創建NSTimer
- 16. 加密和解密在iphonesdk
- 17. iphonesdk按鈕+表問題
- 18. iphonesdk日期格式問題
- 19. 使用tableview和html的iphonesdk
- 20. Iphonesdk綁定檢查着色
- 21. 來自iPhone設備的PushNotification中的錯誤
- 22. 如何在iPhone運行應用程序中處理pushnotification服務
- 23. 如何在iPhoneSDK中製作LED動畫?
- 24. Urbanairship PushNotification在BB的問題,沒有得到Pushnotification
- 25. 如何更改默認pushnotification alertview?
- 26. ios在後臺處理pushnotification
- 27. PushNotification無法正常工作
- 28. 科爾多瓦PushNotification問題
- 29. PushNotification - 沒有設備發現
- 30. Pushnotification無法正常工作
請記住,只有當用戶在收到「推送」通知時允許該應用程序打開時纔會這樣。如果用戶不允許打開該應用程序,則在應用程序的後續打開時,該信息將不會被應用程序接收。應用程序將不得不向發送服務器查詢應該在關閉時收到的更新。 – Jann 2010-03-20 07:35:21