In an iOS App, I receive a push token for notifications from APN in the following Text format;
{length = 32, bytes = 0x7ea619b7 9285424b f62a8e04 30bd94e3 … 8505c98a 9305909a }
(The actual string is longer, but I’m sure you get the idea)
What I need to create is an alphanumeric text of 32 characters from this text.
Can anyone help me how to convert the text I receive to an actual 32 character text?
// theData is the NSData object your mentioned in your first post
Dim mb As Xojo.core.Memoryblock = theData.GetBytes(theData.length)
Dim token As Text = Xojo.Core.TextEncoding.UTF8.ConvertDataToText(mb)