urbanairship / urbanairship-xamarin

Urban Airship Xamarin Libraries
https://docs.urbanairship.com/platform/xamarin/
Apache License 2.0
9 stars 5 forks source link

UADefaultMessageCenterMessageViewController Doesn't Expose Parent's InitWithNib #83

Closed benfrye closed 6 years ago

benfrye commented 6 years ago

UADefaultMessageCenterMessageViewController doesn't provide an extension of the initializer that takes a nib name and NSBundle (UADefaultMessageCenterMessageViewController(string nibName, NSBundle bundle)). My main issue is I'm trying to customize the Message Center list view more than is provided through the documented styling. This requires me to roll my own Message Center list view. In order to do that I need a way to display the actual message view. I am attempting to do my own UISplitViewController implementation (as we don't want this to modally present in the app), however, I can't get the UADefaultMessageCenterMessageViewController to load properly. In Objective-C land, loading the nib from the UAirship bundle has worked. Unfortunately that initializer has not been exposed in the binding library. Furthermore, it appears that UADefaultMessageCenterMessageViewController has been deprecated and we should be using UAMessageCenterMessageViewController now, however that hasn't been exposed in the binding library yet either.

benfrye commented 6 years ago

An alternative could be to just use my own UIWebView but it appears that the message body URL provided needs authentication that is generated by the SDK. Is there a way to access that authentication information?

BrianBatchelder commented 6 years ago

@benfrye - we'll look into this, soon.

rlepinski commented 6 years ago

@benfrye We will try to have our bindings updated by the end of the week that exposes the methods you need. If you want to attempt it yourself, you need to supply basic auth from the UAUser object https://github.com/urbanairship/xamarin-component/blob/master/src/AirshipBindings.iOS/ApiDefinition.cs#L2767

benfrye commented 6 years ago

@rlepinski Where do these credentials come from? I was sniffing the packets being sent by the SDK and I don't recognize the username/password used by the SDK.

rlepinski commented 6 years ago

@benfrye we generate the password during the first run. If you have an inbox message you will have a user.

BrianBatchelder commented 6 years ago

@benfrye Just released 4.6.4, which should expose the bindings you need. We appreciate your feedback, and plan to expose more of our iOS SDK in our next major release.