cezarywojcik / CWStatusBarNotification

A library that allows you to easily create text-based notifications that appear on the status bar.
MIT License
2.03k stars 260 forks source link

Component not drawing over status bar anymore on iOS 13 #116

Open ppamorim opened 5 years ago

ppamorim commented 5 years ago

This component is not working anymore on iOS 13, I am trying to find a solution for this but can't see anything ideal to fix it.

Edit: The component will not work if your app uses UIScene.

cculianu commented 5 years ago

Yeah I have the same issue. I tried setting the .windowLevel on the internal notificationWindow instance that is used for the view -- to no avail.

It seems iOS 13 doesn't let you put any views or windows on top of the status bar!

I think this may be a bug in iOS 13.

I tried doing a quick "hide" of the status bar, then moving my app's window down 20 pix to "fake" it, then quickly unhide the status bar. This looks ok on iPhone -- but this produces weird results on iPad in windowed and/or split-screen mode for me.

If anyone found a workaround, would love to hear it.

ppamorim commented 5 years ago

@cculianu Reported to Apple: https://forums.developer.apple.com/thread/124649?start=0&tstart=0

cculianu commented 5 years ago

Ok, thanks. I also added a backing set of screenshots and info to the post. Who knows -- maybe Apple will fix this. I consider this a bug in iOS, TBH.

Other projects that try to draw to the status bar area are also affected. Most of them implement a workaround by just avoiding the area now on iOS13.

Sad.

ppamorim commented 5 years ago

@cculianu Mind that your comment is not visible, you will need to remove the link from them or fake it. Apple is not approving any comments with link...

cculianu commented 5 years ago

I put a link to the image... Oh so I need to have the image url just be in the message but not as an <img= tag?

Why do they even enable HTML images then? LOL

It says "being moderated" -- I take it .. it will never get moderated?

cculianu commented 5 years ago

Ok. Fixed. Thanks for the tip.

ppamorim commented 5 years ago

Yes it never gets moderated...