2015-09-12 49 views
2

好吧,儘管我是系統中的註冊設備,但我無法從VK獲取任何推送通知。無法檢索Windows Phone上的VK SDK的推送通知

這裏有一個註冊碼,我也得到確定:

Dictionary<string, string> dic = new Dictionary<string, string>(); 
dic.Add("token", App.channel.Uri.ToString()); 
dic.Add("device_id", Windows.System.UserProfile.AdvertisingManager.AdvertisingId); 


VKRequest.Dispatch<VKList<VKUser>>(new VKRequestParameters("account.registerDevice", dic), (res) => 
      { 
       //Newtonsoft cannot parse this string 
       if (res.ResultString == "{\"response\":1}") //OK 
        result = true; 
      }); 

我指定我的推送通知,(VK側):

Type: WNS 
SID: ms-app://s-... 
Client Secret: Secret... 

但是當我打電話getPushSettings,我得到這樣的事情:

{"response":{"disabled":1,"subscribe":"msg, chat, friend","conversations":{"count":3,"items":[{"user_id":122,"sound":1,"disabled_until":0},{"user_id":123,"sound":1,"disabled_until":0},{"user_id":124,"sound":1,"disabled_until":0}]}}} 

沒有傳入的推送通知..我該怎麼辦?

+0

您必須打開vk上的推送通知/開發人員/我的應用程序/「選擇您創建的應用程序」/設置 –

回答

0

問題出在API版本中。當我指定「v」時:「5.37」一切正常。

相關問題