We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I added crt file into bundles and used this code
NSString *certPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"PushCrt" ofType:@"crt"]; NSData *certData = [NSData dataWithContentsOfFile:certPath]; [XMCenter addSSLPinningCert:certData]; [XMCenter addSSLPinningURL:@"https://*****.net"]; [XMCenter sendRequest:^(XMRequest *request) { request.url = [NSString stringWithFormat:@"https://*****:8801/api/v2/tokens"]; request.parameters = @{@"device": @"ios", @"token" : @"aa", @"channel" : @"default"}; request.httpMethod = kXMHTTPMethodPOST; request.headers = @{@"X-AN-APP-NAME" : @"**", @"X-AN-APP-KEY" : @"**"}; //request.responseSerializerType = kXMResponseSerializerJSON; } onSuccess:^(id responseObject) { NSLog(@"%@",responseObject); } onFailure:^(NSError *error) { NSLog(@"%@",error); NSLog(@"%@",[error localizedFailureReason]); } onFinished:^(id responseObject, NSError *error) { }];
but it exception by below error, any hint?
Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://*:8801/api/v2/tokens, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=https://:8801/api/v2/tokens}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I added crt file into bundles and used this code
but it exception by below error, any hint?
Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://*:8801/api/v2/tokens, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=https://:8801/api/v2/tokens}
The text was updated successfully, but these errors were encountered: