libstatusbar

How to hide statusbar icons in iOS

微笑、不失礼 提交于 2020-02-24 11:21:10
问题 I want to create a simple mobilesubstrate tweak that hides and shows status bar icons like battery or Carrier or wifi signal indecator. I've seen libstatusbar project but i can't find out how to hide iOS's icons. Is there any other way to do this without the use of this library? I just want to hide and show the default icons 回答1: Here is what I use in my tweak: int itemToHide = 0; [[objc_getClass("SBStatusBarStateAggregator") sharedInstance] beginCoalescentBlock]; [[objc_getClass(

Check if app has a notfication using private frameworks?

旧城冷巷雨未停 提交于 2019-12-01 10:41:18
I'm writing a mobilesubstrate tweak for jailbroken devices that displays an icon in the statusbar if a defined app has a notification using libstatusbar I'm having trouble locating where iOS keeps this notification info for each app. Could anyone point me in the right direction/framework? I don't intend on submitting this to Apple, again it's for jailbroken devices. Thanks SO. I believe there are two notifications which looks similar, but internally goes through different execution routes: local notification and remote push notifications. I don't have exact answer. Couple of ideas, direction,

Check if app has a notfication using private frameworks?

对着背影说爱祢 提交于 2019-12-01 08:35:13
问题 I'm writing a mobilesubstrate tweak for jailbroken devices that displays an icon in the statusbar if a defined app has a notification using libstatusbar I'm having trouble locating where iOS keeps this notification info for each app. Could anyone point me in the right direction/framework? I don't intend on submitting this to Apple, again it's for jailbroken devices. Thanks SO. 回答1: I believe there are two notifications which looks similar, but internally goes through different execution