Joke Collection Website - Public benefit messages - Why can't some ios aurora push get token?
Why can't some ios aurora push get token?
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.
- Previous article:Huawei b3 1 1 suddenly became very slow.
- Next article:Glory note 10 There are advertisements when you open the browser.
- Related articles
- How to send WeChat regularly?
- What is the problem that Samsung mobile phone does not vibrate after setting?
- How can a woman reply if she doesn't reply?
- 139 is there a record of the login of the mailbox? Will it be prompted by SMS?
- Ios 15 how to lock the screen without vibration
- How does Gionee mobile phone turn icons into other shapes?
- The SMS fee needs to be included in the invoice.
- Is it true that people go to court to collect debts?
- If the message was written without editing or adding contacts, just press Exit. Will the information be saved?
- What does it mean to move a virtual number?