如何在Window Phone开发中获取设备令牌 [英] How to get Device Token in Window phone development
本文介绍了如何在Window Phone开发中获取设备令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何机构都可以告诉我如何在Window Phone progragmming中获取设备令牌。
解决方案
使用此 :Microsoft.Phone.Info.DeviceExtendedProperties
byte [] myDeviceID =( byte [])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue (" DeviceUniqueId" );
string DeviceIDAsString = Convert.ToBase64String(myDeviceID);
hi,
any body can tell me how to get Device Token in Window phone progragmming.
解决方案
use this :Microsoft.Phone.Info.DeviceExtendedProperties
byte[] myDeviceID = (byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId");
string DeviceIDAsString = Convert.ToBase64String(myDeviceID);
这篇关于如何在Window Phone开发中获取设备令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文