I want to use push notifications on iphone through Urban Airship, and i'm using their client library for iOS.
I integrated the library inside my project and everything compiles correctly.
On application launch, i'm trying to register my device token to the UrbanAirship server:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//Init Airship launch options
NSMutableDictionary *takeOffOptions = [[[NSMutableDictionary alloc] init] autorelease];
[takeOffOptions setValue:launchOptions forKey:UAirshipTakeOffOptionsLaunchOptionsKey];
// Create Airship singleton that's used to talk to Urban Airhship servers.
// Please populate AirshipConfig.plist with your info from http://go.urbanairship.com
[UAirship takeOff:takeOffOptions];
[[UAPush shared] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeAlert)];
// Override point for customization after application launch.
[window addSubview:[self.firstViewController view]];
[self.window makeKeyAndVisible];
return YES;
}
Now, I noticed that i'm getting the device token from apple, but when i'm trying to register it in the UrbanAirship server i'm getting error messages in the console from the UALOG about ssl problem:
* Request ERROR [registering device token] Error: Error Domain=ASIHTTPRequestErrorDomain Code=1 "A connection failure occurred: SSL problem (possibly a bad/expired/self-signed certificate)" UserInfo=0x2b2aa0 {NSUnderlyingError=0x2aedb0 "The operation couldn’t be completed. (OSStatus error -9807.)", NSLocalizedDescription=A connection failure occurred: SSL problem (possibly a bad/expired/self-signed certificate)}*
I'm using the same certificate that I downloaded from the Itunes Connect. Moreover, the cert seems to be OK when i'm accessing the APNs, so what can cause my problem?
(PS - The certificate is for development and so the UrbanAirship Application)