Joke Collection Website - Public benefit messages - Why can't some ios aurora push get token?

Why can't some ios aurora push get token?

First, please ensure that your certificate has been imported correctly:

Confirm whether there is a pop-up dialog box to open the notice when the App runs for the first time.

If not, please ensure that:

First of all, make sure that the App is installed for the first time and does not pop up (the system only prompts you once).

You can delete the application and rebuild it.

If it is really the first time to install and run, please carefully regenerate the preset description file according to the requirements of certificate configuration.

If so, please ensure that the method of obtaining the device token is correct.

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

NSLog(@“% @”,[[[[device token description]stringByReplacingOccurrencesOfString:@ " & ltwithString: @""]

stringByReplacingOccurrencesOfString:@ " >withString: @""]

stringByReplacingOccurrencesOfString:@ " " with string:@ " "]);

Method 2: use options: (nsdictionary *) launchoptions to open the log of ume in DidFinishLaunchingWith, and then look for 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.