UI not getting shown
Closed this issue · 1 comments
Hi,
as far as I understand it, there should be some prebuild UI getting shown in the app when I send a Push Notification or an InAppMessage such as LandingPage. Unfortunately nothing is getting shown in my app.
Below I attached the output. There is a line saying " Recieved a foreground push notification when the [UAirship push].pushNotificationDelegate is not set. Unable to show any UI." What is the reason?
Also intersting "_No action found with name , skipping action." and "Not running action ^p because of predicate."
2016-07-17 17:15:12.929 XamarinSample[592:252351] [W] -[UAConfig validate] [Line 239] Production App Key is not valid.
2016-07-17 17:15:12.929 XamarinSample[592:252351] [W] -[UAConfig validate] [Line 243] Production App Secret is not valid.
2016-07-17 17:15:12.929 XamarinSample[592:252351] [I] +[UAirship executeUnsafeTakeOff:] [Line 205] UAirship Take Off! Lib Version: 7.2.0 App Key: QMUXTEQQQAGI87UOAza3pA Production: NO.
2016-07-17 17:15:12.929 XamarinSample[592:252351] [D] +[UAirship executeUnsafeTakeOff:] [Line 213] Setting User-Agent for UA requests to UASample 1.0 (iPhone; iPhone OS 9.3.2; UALib 7.2.0; QMUXTEQQQAGI87UOAza3pA; de_DE)
2016-07-17 17:15:12.939 XamarinSample[592:252351] Channel ID: 4690a8cb-7924-4bd0-bba4-e6e4940049cb
2016-07-17 17:15:12.939 XamarinSample[592:252351] [D] -[UANamedUser update] [Line 61] New or re-install, skipping named user update.
2016-07-17 17:15:12.953 XamarinSample[592:252351] [D] -[UADefaultMessageCenterStyle setValue:forUndefinedKey:] [Line 164] Ignoring invalid UAMessageCenterDefaultStyle key: detectProvisioningMode
2016-07-17 17:15:12.953 XamarinSample[592:252351] [D] -[UADefaultMessageCenterStyle setValue:forUndefinedKey:] [Line 164] Ignoring invalid UAMessageCenterDefaultStyle key: productionAppKey
2016-07-17 17:15:12.953 XamarinSample[592:252351] [D] -[UADefaultMessageCenterStyle setValue:forUndefinedKey:] [Line 164] Ignoring invalid UAMessageCenterDefaultStyle key: developmentAppKey
2016-07-17 17:15:12.954 XamarinSample[592:252351] [D] -[UADefaultMessageCenterStyle setValue:forUndefinedKey:] [Line 164] Ignoring invalid UAMessageCenterDefaultStyle key: inProduction
2016-07-17 17:15:12.954 XamarinSample[592:252351] [D] -[UADefaultMessageCenterStyle setValue:forUndefinedKey:] [Line 164] Ignoring invalid UAMessageCenterDefaultStyle key: productionAppSecret
2016-07-17 17:15:12.954 XamarinSample[592:252351] [D] -[UADefaultMessageCenterStyle setValue:forUndefinedKey:] [Line 164] Ignoring invalid UAMessageCenterDefaultStyle key: developmentAppSecret
2016-07-17 17:15:12.954 XamarinSample[592:252351] [I] +[UAirship executeUnsafeTakeOff:] [Line 282] Automatic setup enabled.
2016-07-17 17:15:12.954 XamarinSample[592:252351] [D] +[UAAppDelegateProxy swizzle:implementation:class:] [Line 106] Adding implementation for application:handleActionWithIdentifier:forRemoteNotification:completionHandler: class AppDelegate
2016-07-17 17:15:12.954 XamarinSample[592:252351] [D] +[UAAppDelegateProxy swizzle:implementation:class:] [Line 106] Adding implementation for application:handleActionWithIdentifier:forRemoteNotification:withResponseInfo:completionHandler: class AppDelegate
2016-07-17 17:15:12.954 XamarinSample[592:252351] [D] +[UAAppDelegateProxy swizzle:implementation:class:] [Line 106] Adding implementation for application:didReceiveRemoteNotification:fetchCompletionHandler: class AppDelegate
2016-07-17 17:15:12.954 XamarinSample[592:252351] [D] +[UAAppDelegateProxy swizzle:implementation:class:] [Line 106] Adding implementation for application:didReceiveRemoteNotification: class AppDelegate
2016-07-17 17:15:12.954 XamarinSample[592:252351] [D] +[UAAppDelegateProxy swizzle:implementation:class:] [Line 106] Adding implementation for application:didRegisterForRemoteNotificationsWithDeviceToken: class AppDelegate
2016-07-17 17:15:12.954 XamarinSample[592:252351] [D] +[UAAppDelegateProxy swizzle:implementation:class:] [Line 106] Adding implementation for application:didRegisterUserNotificationSettings: class AppDelegate
2016-07-17 17:15:12.955 XamarinSample[592:252351] [D] +[UAAppDelegateProxy swizzle:implementation:class:] [Line 106] Adding implementation for application:didFailToRegisterForRemoteNotificationsWithError: class AppDelegate
Loaded assembly: /private/var/containers/Bundle/Application/6A6ABF7C-9022-400E-866A-897E5964F826/XamarinSample.app/.monotouch-64/System.dll
2016-07-17 17:15:13.012 XamarinSample[592:252351] Warning: Attempt to present <UADefaultMessageCenterSplitViewController: 0x147983400> on <ViewController: 0x147597cb0> whose view is not in the window hierarchy!
2016-07-17 17:15:13.023 XamarinSample[592:252351] [D] -[UAAnalytics addEvent:] [Line 252] Adding app_init event 27B1081C-067B-4423-87EF-B9E675B48E57.
2016-07-17 17:15:13.031 XamarinSample[592:252351] [D] -[UAPush updateRegistration] [Line 883] APNS registration is out of date, updating.
2016-07-17 17:15:13.031 XamarinSample[592:252351] [D] -[UAPush updateAPNSRegistration] [Line 1029] Registering for user notification types 7.
2016-07-17 17:15:13.050 XamarinSample[592:252351] [D] -[UAChannelRegistrar updateChannel:channelLocation:withPayload:] [Line 99] Updating channel 4690a8cb-7924-4bd0-bba4-e6e4940049cb
2016-07-17 17:15:13.050 XamarinSample[592:252351] [D] -[UAInboxMessageList retrieveMessageListWithSuccessBlock:withFailureBlock:] [Line 128] Retrieving message list.
2016-07-17 17:15:13.059 XamarinSample[592:252351] [I] __56-[UAInboxMessageList refreshInboxWithCompletionHandler:]_block_invoke_2 [Line 389] Inbox messages updated.
2016-07-17 17:15:13.059 XamarinSample[592:252351] [D] __56-[UAInboxMessageList refreshInboxWithCompletionHandler:]_block_invoke_2 [Line 391] Loaded saved messages: (
).
2016-07-17 17:15:13.069 XamarinSample[592:252351] [I] -[UAPush appRegisteredUserNotificationSettings] [Line 1093] Application did register with user notification types 7.
2016-07-17 17:15:13.072 XamarinSample[592:252351] Device token: bb438874929312e92aa23833d0eff4784b6d1652b8e27bde3c7a7b4a1f1a2a9e
2016-07-17 17:15:13.072 XamarinSample[592:252351] [I] -[UAPush appRegisteredForRemoteNotificationsWithDeviceToken:] [Line 1078] Application registered device token: bb438874929312e92aa23833d0eff4784b6d1652b8e27bde3c7a7b4a1f1a2a9e
2016-07-17 17:15:13.072 XamarinSample[592:252351] [D] -[UAAnalytics addEvent:] [Line 252] Adding device_registration event 63BD79C7-FD49-4813-BCEB-738A4B0D0249.
2016-07-17 17:15:13.086 XamarinSample[592:252351] [D] -[UAChannelRegistrar registerWithChannelID:channelLocation:withPayload:forcefully:] [Line 58] Ignoring registration request, one already in progress.
2016-07-17 17:15:13.498 XamarinSample[592:252351] [I] __20-[UAUser updateUser]_block_invoke.148 [Line 231] Updated user Sg39W_KIQCSOKMtLSPnkrQ successfully.
2016-07-17 17:15:13.505 XamarinSample[592:252351] [I] -[UAPush registrationSucceededWithPayload:] [Line 1099] Channel registration updated successfully.
2016-07-17 17:15:13.532 XamarinSample[592:252351] [D] __59-[UAInboxAPIClient retrieveMessageListOnSuccess:onFailure:]_block_invoke_3 [Line 172] Setting Last-Modified time to '(null)' for user Sg39W_KIQCSOKMtLSPnkrQ's message list.
2016-07-17 17:15:13.533 XamarinSample[592:252351] [D] __75-[UAInboxMessageList retrieveMessageListWithSuccessBlock:withFailureBlock:]_block_invoke.73 [Line 166] Refreshing message list.
2016-07-17 17:15:13.537 XamarinSample[592:252351] [I] __56-[UAInboxMessageList refreshInboxWithCompletionHandler:]_block_invoke_2 [Line 389] Inbox messages updated.
2016-07-17 17:15:13.537 XamarinSample[592:252351] [D] __56-[UAInboxMessageList refreshInboxWithCompletionHandler:]_block_invoke_2 [Line 391] Loaded saved messages: (
).
2016-07-17 17:15:28.157 XamarinSample[592:252351] [D] __41-[UAAnalytics uploadOperationWithEvents:]block_invoke [Line 537] Analytics data sent successfully. Status: 200
2016-07-17 17:16:27.725 XamarinSample[592:252351] [I] -[UAPush appReceivedRemoteNotification:applicationState:fetchCompletionHandler:] [Line 603] Application received remote notification: {
"^p" = "https://dl.urbanairship.com/binary/public/QMUXTEQQQAGI87UOAza3pA/15a29de7-2af4-46fa-a38d-32c8d33d8cdb";
"" = "bpaWkEwxEea6c5DiugL0-A";
aps = {
alert = jojojo;
};
}
2016-07-17 17:16:27.726 XamarinSample[592:252351] [D] -[UAAnalytics addEvent:] [Line 252] Adding push_received event A595FDE4-E091-46E1-AE73-39E393504670.
2016-07-17 17:16:27.737 XamarinSample[592:252351] [D] +[UAActionRunner runActionWithName:value:situation:metadata:completionHandler:] [Line 84] No action found with name _, skipping action.
2016-07-17 17:16:27.738 XamarinSample[592:252351] [D] +[UAActionRunner runActionWithName:value:situation:metadata:completionHandler:] [Line 78] Not running action ^p because of predicate.
2016-07-17 17:16:27.739 XamarinSample[592:252351] [D] __47-[UAAction runWithArguments:completionHandler:]block_invoke_3 [Line 71] Action <UAIncomingPushAction: 0x147642440> performing with arguments UAActionArguments with situation: Foreground Push, value: {
"^p" = "https://dl.urbanairship.com/binary/public/QMUXTEQQQAGI87UOAza3pA/15a29de7-2af4-46fa-a38d-32c8d33d8cdb";
"" = "bpaWkEwxEea6c5DiugL0-A";
aps = {
alert = jojojo;
};
}.
2016-07-17 17:16:27.739 XamarinSample[592:252351] [W] -[UAIncomingPushAction handleForegroundPush:completionHandler:] [Line 80] Recieved a foreground push notification when the [UAirship push].pushNotificationDelegate is not set. Unable to show any UI.
2016-07-17 17:16:27.740 XamarinSample[592:252351] [D] +[UAActionRunner runActionWithName:value:situation:metadata:completionHandler:] [Line 84] No action found with name aps, skipping action.
2016-07-17 17:16:28.506 XamarinSample[592:252351] [D] __41-[UAAnalytics uploadOperationWithEvents:]_block_invoke [Line 537] Analytics data sent successfully. Status: 200
@GrischaJJ iOS generally does not show any UI when a push is received in the foreground. In the background, iOS will post a notification in the notification center. Urban Airship will not display any default UI, instead its up to the app to handle UI for the foreground push. You can do that by setting a PushNotificationDelegate on the UAPush class. The logged warning is very Obj-c specific and we will update it in a future release.
The other logs about the actions are verbose logs that you can ignore. You can update the default log level to "info" to suppress them.