Hi,
I'm facing a weird behavior from Urban Airship. I have one app that is separated in App Store version and Stage version, with two different application and bundle id, but only App Store version can receive push notification.
I've already checked all Stage's version certs, profiles, UA's application settings and everything seems to be OK. Unfortunately, I cannot receive push notification at all!
The log:
2017-07-21 22:42:42.114158-0300 β Homer[2444:836873] [E] +[UAirship handleAppDidFinishLaunchingNotification:]_block_invoke [Line 296] [UAirship takeOff] was not called in application:didFinishLaunchingWithOptions:
2017-07-21 22:42:42.114252-0300 β Homer[2444:836873] [E] +[UAirship handleAppDidFinishLaunchingNotification:]_block_invoke [Line 297] Please ensure that [UAirship takeOff] is called synchronously before application:didFinishLaunchingWithOptions: returns
2017-07-21 22:42:42.175144-0300 β Homer[2444:836873] [Device Token] <160d0154 74ba2062 cb0a0369 07bcabee 2eaf7cb2 74950c15 1b2314bf edffe241>
2017-07-21 22:42:42.189023-0300 β Homer[2444:836873] [W] -[UAConfig validate] [Line 234] Production App Key matches Development App Key.
2017-07-21 22:42:42.189116-0300 β Homer[2444:836873] [W] -[UAConfig validate] [Line 238] Production App Secret matches Development App Secret.
2017-07-21 22:42:42.189389-0300 β Homer[2444:836873] [I] +[UAirship executeUnsafeTakeOff:] [Line 187] UAirship Take Off! Lib Version: 8.4.2 App Key: WdontHV4Qriv0A7FuxLxJg Production: NO.
2017-07-21 22:42:42.211060-0300 β Homer[2444:836873] Channel ID: 58171011-d403-465e-905c-41ba509d8c07
2017-07-21 22:42:42.238084-0300 β Homer[2444:836873] [D] -[UANamedUser update] [Line 65] New or re-install, skipping named user update.
2017-07-21 22:42:42.336952-0300 β Homer[2444:836873] [I] -[UALocation startLocationUpdates] [Line 164] Starting location updates.
CoreData: warning: no NSValueTransformer with class name 'NSUnarchiveFromDataTransformerName' was found for attribute 'messageBodyURL' on entity 'UAInboxMessage'
CoreData: warning: no NSValueTransformer with class name 'NSUnarchiveFromDataTransformerName' was found for attribute 'messageURL' on entity 'UAInboxMessage'
2017-07-21 22:42:42.389688-0300 β Homer[2444:836873] [I] -[UAInboxMessageList refreshInboxWithCompletionHandler:]_block_invoke_2 [Line 358] Inbox messages updated.
2017-07-21 22:42:42.402963-0300 β Homer[2444:836873] [D] -[UAAnalytics addEvent:] [Line 172] Adding app_init event 6F89654D-43EC-42BB-985E-2BF071A55583.
2017-07-21 22:42:42.403165-0300 β Homer[2444:836873] [D] -[UAEventManager scheduleUploadWithDelay:] [Line 269] Enqueuing attempt to schedule event upload with delay on main queue.
2017-07-21 22:42:42.404464-0300 β Homer[2444:836873] [D] -[UAEventManager scheduleUploadWithDelay:]_block_invoke [Line 272] Attempting to schedule event upload with delay: 14.914984 seconds.
2017-07-21 22:42:42.404535-0300 β Homer[2444:836873] [D] -[UAEventManager scheduleUploadWithDelay:]_block_invoke [Line 286] Scheduling upload.
2017-07-21 22:42:42.406130-0300 β Homer[2444:836873] [D] -[UAPush updateRegistration] [Line 773] APNS registration is out of date, updating.
2017-07-21 22:42:42.497099-0300 β Homer[2444:836873] [Device Token] <160d0154 74ba2062 cb0a0369 07bcabee 2eaf7cb2 74950c15 1b2314bf edffe241>
App Delegate
- (void)configUrbanAirship:(NSString *)deviceToken {
UAConfig *config = [UAConfig defaultConfig];
config.developmentAppKey = @"XXXXXXXXXXXXXXXXXXXXXXX";
config.developmentAppSecret = @"XXXXXXXXXXXXXXXXXXXXXXX";
config.productionAppKey = @"XXXXXXXXXXXXXXXXXXXXXXX";
config.productionAppSecret = @"XXXXXXXXXXXXXXXXXXXXXXX";
config.automaticSetupEnabled = NO;
[UAirship takeOff:config];
[UAirship push].userPushNotificationsEnabled = YES;
[UAirship location].locationUpdatesEnabled = YES;
[UAirship inAppMessaging].messagingDelegate = self;
[UAirship inAppMessaging].messageControllerDelegate = self;
[UAirship inAppMessaging].displayASAPEnabled = YES;
}
Thank you.
Comments
1 comment