IOS integrated Umeng push UMengPush

It's absolutely fine to follow these steps:

 

1. Certificate configuration

http://dev.umeng.com/push/ios/license-configuration-guide#4

 

2. The device description is displayed in red, and the filter result is empty

  a. Umeng appkey is not configured

  b. Delete the application and re-run

  c. There is a delay in the backstage of Umeng, ranging from a few minutes

  d. Display black can test information

 

configuration code

If the device description is red, it generally means that no log has been sent to Umeng, or the appkey is missing.
First check whether the push appkey is correctly filled in. The statistical method is MobClick startWithAppkey; the push method is UMessage startWithAppkey, which are two different methods.

If it still doesn't work, IOS first uses the following code to judge whether there is an error:

didFailToRegisterForRemoteNotificationsWithError:(NSError *)err
{     NSString *error_str = [NSString stringWithFormat: @"%@", err];     NSLog(@"Failed to get token, error: %@", error_str); } Also: - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {     [UMessage registerDeviceToken:deviceToken];     NSLog(@"didRegisterForRemoteNotificationsWithDeviceToken success");     NSLog(@"% @",[[[[deviceToken description] stringByReplacingOccurrencesOfString: @"
    


    





    

    

                  stringByReplacingOccurrencesOfString: @">" withString: @""]
                 stringByReplacingOccurrencesOfString: @" " withString: @""]); }   where [UMessage registerDeviceToken:deviceToken]; cannot be commented out. If it still doesn't work, you can uninstall and reinstall the app again.
    



 

3. Push failed

  a. Turn on the push switch in capabilities.

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326360517&siteId=291194637
Recommended