Joke Collection Website - Public benefit messages - Union-push-IOs-how does IOs get the DeviceToken of the device?

Union-push-IOs-how does IOs get the DeviceToken of the device?

Method 1: add the following statement to didregisterforremote notification swithdevicetoken.

NSLog(@“% @”, [[[[device token description]stringByReplacingOccurrencesOfString:@ " & ltwith string:@ " "] string:@ " " > stringbyreplacingoccurrences of stringwith string:@ " "]stringbyreplacingocurrences of string:@ " " with string:@ " "]);

Method 2: Open the log of UMessage in diddfinishlaunching with options: nsdictionary *) launchoptions, and then find the field of deviceToken.

//For logs

[usage setlogenabled: Yes];

Either way, you can get the DeviceToken string of the test device on the console, which is 64 in length.