我正在使用 Visual Studio 2012 在手机间隙 + 移动 jquery 中创建 Windows Phone 8 应用程序。我想从设备获取设备 token ID 以进行推送通知。谁能指导我如何获取 Windows Phone 8 的设备 token ID?
最佳答案
您可以使用 DeviceExtendedProperties
——
byte[] myDeviceID = (byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId");
string idAsString = Convert.ToBase64String(myDeviceID);
关于windows-phone-8 - 如何获取 Windows 手机的设备 token ID 以进行推送通知?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18438255/