Have not been able to receive notifications on iOS 13. I have been using the code below to fix the issue but I am told by Xamarin Notification Hub support that it is not the correct code and to contact you to determine the correct code:
public async override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
if (UIDevice.CurrentDevice.CheckSystemVersion(13, 0))
{
//iOS 13 or greater
byte[] bytes = deviceToken.ToArray<byte>();
string[] hexArray = bytes.Select(b => b.ToString("x2")).ToArray();
string strFinal = string.Join(string.Empty, hexArray);
JanitorsApp.DeviceSpecificValues.gobjdeviceToken = strFinal;
}
else
{
//ios less than 13
JanitorsApp.DeviceSpecificValues.gobjdeviceToken = deviceToken;
}
}
@JeffHoffelner I'm unclear what you are trying to do here with getting the device token and what this code is trying to accomplish. Can you provide the following?
What IDE are you using?
What iOS version are you using?
Are you using an SDK from Azure Notification Hubs? If so, which version?
Is this specific to iOS 13 or does it apply to earlier versions?
Have not been able to receive notifications on iOS 13. I have been using the code below to fix the issue but I am told by Xamarin Notification Hub support that it is not the correct code and to contact you to determine the correct code: