KrauseFx / TSMessages

💌 Easy to use and customizable messages/notifications for iOS à la Tweetbot
http://krausefx.com
MIT License
4.87k stars 721 forks source link

TSMessages in not working in iOS extensions #249

Open arturmichna opened 9 years ago

arturmichna commented 9 years ago

CGSize statusBarSize = [UIApplication sharedApplication].statusBarFrame.size;

according to iOS specification You can't use [UIApplication sharedApplication] in app extensions. While trying to use TSMessages lib in extension it won't compile.

ShikharTeamie commented 5 years ago

Facing the same problem. @arturmichna - were you able to fix this at your end?

arturmichna commented 5 years ago

We currently use another library. If you want to fix this, you will need to remove all references to UIApplication in TSMessage or write a wrapper on this class to avoid linking to extension and show notifications in other way