How to use Objective C to send device token for push notifications and other user settings to sql table on server

前端 未结 2 454
不知归路
不知归路 2020-12-24 04:14

Ideally, I would like to send an HTTP Request using POST to the Push Notification Server that contains the device token as well as some user-defined settings. From there I c

2条回答
  •  北海茫月
    2020-12-24 04:41

    another way:

    NSString * tokenAsString = [[[deviceToken description] 
    stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"<>"]] 
    stringByReplacingOccurrencesOfString:@" " withString:@""];
    

提交回复
热议问题