openhab / openhab-ios

The repository of the iOS client
Eclipse Public License 2.0
190 stars 127 forks source link

IOS application crash #95

Closed IgorVinokur closed 7 years ago

IgorVinokur commented 7 years ago

OpenHab application crashs, when notification message received

digitaldan commented 7 years ago

Can you please provide what IOS version you are on ? (i'm assuming 10.1)

duiffie commented 7 years ago

I can confirm: the same crash happens on iOS 10.1 when receiving notifications while the app is active.

digitaldan commented 7 years ago

I can reproduce it now, the crash happens here https://github.com/openhab/openhab.ios/blob/master/openHAB/OpenHABAppDelegate.m#L107 , we are casting this to a UINavigationController, but its actually a MMDrawerController and does not have a selector for "visibleViewController". I'm not familiar with the MMDrawerController and will need to find another solution here.

digitaldan commented 7 years ago

I think this should fix it, now I need to push this out.

IgorVinokur commented 7 years ago

Thank you for your fixes, I'm using IOS 10.1 Waiting when it will appear in Apple store