use*_*989 5 push-notification devicetoken windows-phone-8 mpns
我正在使用visual studio 2012在手机间隙+移动jquery中创建一个Windows Phone 8应用程序.我想从设备获取设备令牌ID以进行推送通知.任何人都可以指导我如何获得Windows Phone 8的设备令牌ID?
你可以使用DeviceExtendedProperties
-
byte[] myDeviceID = (byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId");
string idAsString = Convert.ToBase64String(myDeviceID);
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3770 次 |
最近记录: |