Salesforce mobilesdk iOS 带推送功能?
有没有人使用过 iOS 版 Salesforce mobilesdk 并实现了推送?需要一些指导吗?首先,SDK中有哪些服务可用?
Has anyone worked with Salesforce mobilesdk for iOS and implemented push? Need some guidance? First of all are the services available in the SDK?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Salesforce iOS SDK 只是促进与 Salesforce 通信(通过 REST API)和 oAuth 的库。对于其他一切,您都使用标准的 Apple 库,因此您可以使用它们来处理推送通知。关于 Salesforce iOS 的东西,我可以推荐的一件事是使用开发人员博客上发布的包来克隆 git 存储库,更改仍在进行中,因此您需要保持最新状态以避免损坏。
恐怕我无法评论在 Salesforce 端生成推送通知,但我大胆猜测您需要通过 Web 服务与第三方或自定义应用程序集成才能实现此目的。
The Salesforce iOS SDK is just libraries to facilitate communications (via the REST API) and oAuth with Salesforce. For everything else you use the standard Apple libraries, so you'd use those to deal with push notifications. One thing I can recommend with regards to the Salesforce iOS stuff is to clone the git repository over using the package published on the developer blog, changes are still being made and so you need to stay up to date to avoid breakages.
Afraid I can't comment on generating push notifications on the Salesforce side, but I'd hazard a guess that you'll need to integrate with a third party or custom application via web services to achieve this.
Salesforce Ios SDK 有助于使用 REST API 与 salesaforce 进行通信,以推送和拉取数据,其余所有操作都像普通推送应用程序一样完成。
The Salesforce Ios SDK helps in communication to salesaforce using REST APIs, to push and pull the data, rest all the things are done as normal push app does.
Mobile SDK 可以帮助登录、oAuth 以及与 SFDC 对象进行通信。您需要像任何其他 iOS 应用程序一样实现推送通知服务。
要从 Salesforce 发布任何事件的通知,您可以使用 Urban Airship 或 Streaming API。
http://wiki.developerforce.com/page/Push_Notifications_for_Salesforce_Mobile_Apps_with_Urban_Airship
Mobile SDK can help in login, oAuth and to communicate with the SFDC objects. You need to implement Push Notification Services as any other iOS application does.
To post the notificaitons for any events from Salesforce you can use Urban Airship or Streaming API.
http://wiki.developerforce.com/page/Push_Notifications_for_Salesforce_Mobile_Apps_with_Urban_Airship