![](/img/trans.png)
[英]Transfering code from cellForItemAtIndexPath to a CollectionViewCell (Parse Back-End)
[英]How to use Parse IOS SDK with REST Push Notifications from Rails Back-end
我是Rails和Parse的新手,目前正嘗試將Parse Push REST API與具有Rails后端的IOS應用一起使用。
通過從后端到解析的REST API調用來創建安裝。
通過這種模式,是否可以使用PFInstallation的IOS SDK客戶端方法? 如
if (application.applicationIconBadgeNumber != 0) {
application.applicationIconBadgeNumber = 0;
[[PFInstallation currentInstallation] saveInBackground];
}
還是在來自REST API的推送通知的情況下,無法使用Parse IOS SDK? PFInstallations是否也需要鏈接到PFUser嗎?
不知道為什么要嘗試完成。
如果您僅使用“解析”來發送“推送通知”,那么就不應該太麻煩。 您應該使用直接通知系統(iOS / Android)或Urban Airship
類型的工具。
如果您有更好的理由來使用Parse,則應首先閱讀https://parse.com/docs/rest/guide#push-notifications 。
您可以使用Parse REST API(例如,使用已經收集的iOS Push Token,例如,不知道Android,抱歉)手動創建安裝,或者如果您使用的是Rails,則可以使用gem:parse-ruby-client( https: //github.com/adelevie/parse-ruby-client#installations )。
然后,您可以使用Parse REST API( https://parse.com/docs/rest/guide#push-notifications-sending-pushes )。
希望它能回答您的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.