Trying to place UADefaultMessageCenterListViewController in own UINavigationController

Our app is implemented using SwiftUI and a UINavigationController. 
The Inbox implementation from Airship uses a UISplitViewController, which cannot be pushed to a UINavigationController. 
error: "Split View Controllers cannot be pushed to a Navigation Controller"

So I thought: no problem, just subclass the UADefaultMessageCenterListViewController directly and use that. 

However, no messages ever show up. I see the messages being handled by Airship, but the "UAMessageCenterDisplayDelegate" delegate messages are never called.

I set the delegate like this:

UAMessageCenter.shared().displayDelegate = self

Is there another way to implement the Inbox which I am not aware of?

Didn't find what you were looking for?

New post

Comments

3 comments

  • Hi Axel,

    This is Maxime with Airship Technical Support. 

    I recommend that you compare your implementation with our Swift sample app https://github.com/urbanairship/ios-library/tree/main/SwiftSample
    This should allow you to identify the blocking point. If not, please provide me more elements of your implementation such as the UA codes and logs. 

    I remain available. 

    Best,

    Comment actions Permalink
    0
  • So I thought: no problem Promotional notebooks , just subclass the UA Default Message Center List View Controller directly and use that.  However, no messages ever show up. I see the messages being handled by Airship, but the "UA Message Center Display Delegate" delegate messages are never called.

    Comment actions Permalink
    0
  • To place UADefaultMessageCenterListViewController in your own UINavigationController, you need to create an instance of UADefaultMessageCenterListViewController Learn about your DOTS score and then embed it within a UINavigationController using the UINavigationController's initialization methods.

    Comment actions Permalink
    0

Please sign in to leave a comment.