如何使用C#发送推送通知,将iOS 13设备ID从一种格式转换为另一种格式?

如何使用C#发送推送通知,将iOS 13设备ID从一种格式转换为另一种格式?,c#,ios,C#,Ios,我正在为iOS设备制作推送通知。对于iOS设备12和更低版本,我得到的设备ID类似于c02c4e9af109cf5babe23c22c0ae0261e760c4e42d62d3de5,因此推送通知工作正常 但对于iOS 13设备,在API中,我接收的deviceId为string,格式如下 deviceId = {length = 32, bytes = 0xd3d997af 967d1f43 b405374a 13394d2f … 28f10282 14af515f }; 使用C#,如何将此

我正在为iOS设备制作推送通知。对于iOS设备12和更低版本,我得到的设备ID类似于
c02c4e9af109cf5babe23c22c0ae0261e760c4e42d62d3de5
,因此推送通知工作正常

但对于iOS 13设备,在API中,我接收的
deviceId
string
,格式如下

deviceId = {length = 32, bytes = 0xd3d997af 967d1f43 b405374a 13394d2f … 28f10282 14af515f };
使用C#,如何将此设备ID转换为类似于
a01c4e9af109cf5babe23c22c0ae0261e760c4e42d62d3ac2的内容
这样推送通知就可以在iOS 13设备上正常工作了