I am receiving iPhone device token in the form of NSData object.
When I tested my notifications script function, I have only copied that object from log and th
Ok, I found a solution. If anyone has the same problem, forget about ASCII encoding, just make the string with the following lines:
NSString *deviceToken = [[webDeviceToken description] stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"<>"]];
deviceToken = [deviceToken stringByReplacingOccurrencesOfString:@" " withString:@""];