2015-06-15 41 views
0

我在Unity iOS遊戲中集成了解析推送通知。它一直工作正常,直到安裝類的數據被意外刪除。 現在即使重新安裝遊戲後,也沒有任何設備正在註冊。請幫助我,因爲我從最近幾天開始就陷入困境。刪除安裝數據後無法註冊設備 - 解析推送通知

我的另一個問題是,我如何更新默認安裝類來添加/編輯我自己的自定義數據字段?

我的遊戲並不在線。我正在使用測試模式。

回答

0

一般來說,這應該工作

PFInstallation *currentInstallation = [PFInstallation currentInstallation]; 
    [currentInstallation setDeviceTokenFromData:deviceToken]; 
    currentInstallation.channels = @[ @"Feed" ]; 
    [currentInstallation saveInBackground]; 

請確保「didRegisterForRemoteNotificationsWithDeviceToken」呼喚你的設備令牌不爲空。

你可以添加一個你選擇的列前:用戶的指針對象等...