Iphone device token - NSData or NSString

前端 未结 6 1555
走了就别回头了
走了就别回头了 2020-12-13 13:38

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

6条回答
  •  忘掉有多难
    2020-12-13 14:22

    I don't think it's a good solution, as you have to reconstruct the string before sending the notifications to Apple servers. Use Base64 encoding for transmitting the strings or something similar.

提交回复
热议问题