I want to use push notifications on iphone via Urban Airship, and I use their client library for iOS.
I integrated the library inside my project and everything compiles correctly.
When starting the application, I try to register the token of my device on the UrbanAirship server:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSMutableDictionary *takeOffOptions = [[[NSMutableDictionary alloc] init] autorelease];
[takeOffOptions setValue:launchOptions forKey:UAirshipTakeOffOptionsLaunchOptionsKey];
[UAirship takeOff:takeOffOptions];
[[UAPush shared] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeAlert)];
[window addSubview:[self.firstViewController view]];
[self.window makeKeyAndVisible];
return YES;
}
Now I noticed that I get the device token from Apple, but when I try to register it on the UrbanAirship server, I get error messages in the console from UALOG about the ssl problem:
* ERROR [ ]
: Error Domain = ASIHTTPRequestErrorDomain Code = 1 " : SSL (, // )" UserInfo = 0x2b2aa0 {NSUnderlyingError = 0x2aedb0 " . ( OSStatus -9807. )", NSLocalizedDescription = : SSL (, // )} *
, Itunes Connect.
, , , , APN, ?
(PS - , UrbanAirship)