I receive long size payload of NSString in body payload of push notification that I need to convert it to NSData and then save it in corredata. I am using the method:
dataUsingEncoding:NSUTF8StringEncoding
This works fine for short String but for long size string 2049 KB size, it seems convert half of my String to NSData not all... when I print the length of NSData it gives 1000, it seems the maximum size is 1000.... when I convert short String to NSData and print the size which around 677 works correctly.
Any idea?