My app's push notification is working fine in iOS 12.x devices. I am taking the device token as,
-(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken{
str = [NSString stringWithFormat:@"%@", deviceToken];
NSString *token = [[[[deviceToken description]
stringByReplacingOccurrencesOfString:@"<"withString:@""]
stringByReplacingOccurrencesOfString:@">" withString:@""]
stringByReplacingOccurrencesOfString: @" " withString: @""];
from the above method, the token is coming as aJ9tMCx--CQ:APA91bE0UKSbFjPivyvKNHGDxZ5lsqzmiGjBPyYyGMA5Q1mpi5f-zLVreeyk9qbxqOJd4UrEPyeewIic7-HciyXbasd27zx1lpd2_HHCe5QrA5AWEDeC5vGSoE6saiTb6VUTgRT5MaDk
But in iOS 13+ devices, the token is coming as
{length=32,bytes=0x387de70558f0099d606d6cc1234c3967...8a7c5dccb10a67c2}
Since the token isn't in a correct format, the push notification is not working fine. How to get the device token in iOS 13 devices.