I moved from Jane
Original address of this article:The original address
Push, of course, requires various tests when integrating or updating, but it’s impossible to push to all online users. This is where the testing requirement is exposed. It’s very simple
However, before testing, you need to make sure that your client can fit the P12 on each platform.
How to see whether the corresponding on?
Access token
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
Copy the code
If I found it, I’m going to run it, I’m going to get the token, I’m going to copy it.
Go to the twitter website
Open the application configuration and drag it to the bottom
Click to test it out
Then copy the token you just earned and monitor it to see if it works. If successful, a prompt will pop up and the corresponding device will receive a test push message (via Apple’s APNS channel).
If it is not successful, then I guess the probability is that the certificate environment does not match, you put the production environment but your client is the development environment, in this case what to do? There’s a way. Look at this.Push – Development environment push tests
All right, all right, all right, all right. Let’s get down to business
- (void)GeTuiSdkDidRegisterClient:(NSString *)clientId
Copy the code
I’m going to get my CID and I’m going to create a TXT file. Because the character set is different.
Then put cid into TXT file
Go to the official twitter site and create a tweet
Push is done.