Closed eboehnisch closed 9 years ago
Hmm I added this originally to fix a bug on iOS8: https://github.com/jaydee3/JDStatusBarNotification/commit/6152b19a33d7cf1293cbb773383f0f77d49300bb
I guess that would be re introduced here.. not sure what it was though. Probably that it made the statusbar appear, when it wasn't visible.. what is unexpected behavior, no?? I think you should manually show it in the calling code, before using this?
Yes, your fix prevents the status bar from appearing when it's already hidden. But it also means that if one tries to show a notification in landscape mode (with status bar hidden on iOS 8 and later), it will not show when the user rotates to portrait because it's not being initialized.
Does this fix also the issue, that the notification doesn't appear in landscape when rotating back to portrait?
bahavior should stay consistent.
When a JDStatusBarNotification is attempted to show on an iPhone in landscape orientation and with iOS 8 and later, the system has hidden the status bar automatically. This fix makes the status notification appear also in this case.