好吧,尽管我在系统中注册了设备,但我无法从VK获得任何推送通知。
这是注册代码,我没问题:
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 :(得分:0)
问题出在API版本中。当我指定&#34; v&#34;:&#34; 5.37&#34;一切都很好。