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