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