IOS app Integration friend push issue

Source: Internet
Author: User


Before doing the app push is mainly integrated with the Friend League SDK, when the program gets Devicetoken, always prompt the following error:
Error domain=nscocoaerrordomain code=3000 "The aps-environment of the application was not found" the right string "USERINFO=0X14DC69E0 { nslocalizeddescription= the "aps-environment" right string for the application was not found}

Print Get Devicetoken error code

-(void) Application: (UIApplication *) application Didfailtoregisterforremotenotificationswitherror: (NSError *) error

{

NSLog (@ "%@", error);

}

After looking at the online solution, my workaround is as follows (probably not a universal workaround):

1, update the certificate

2. Modify Profile Configuration

Select your own certificate

Recompile.

Then push the message in the background of Friends League, the test results are as follows:

Tip

Friend League push Test needs to add your iphone to your test device

IOS app Integration friend push issue

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.