github DevelopCubeLab/BatteryInfo 1.2.0

latest releases: 1.2.2, 1.2.1
14 months ago

The widget functionality was actually finished a month ago, but it has been under extended testing. Now that it’s stable, it’s finally being released!
Battery Info has been joined to Havoc, remember to add this app to your account for free~

  1. Includes all updates from 1.1.9
  2. New Home Screen Widgets (iOS 14.0+): Multiple color themes, 3 layout styles, Displays battery health and cycle count directly on the Home screen
  3. New Lock Screen Widget (iOS 16.0+): No special function, just a quick way to open the app from the Lock Screen

If you don’t need widgets, you can simply use 1.1.9
Since this update does not apply to below iOS 14.0, no DEB is provided, please use 1.1.9 instead

FAQ – Widgets

  1. Why only battery health and cycle count?
    Due to system limitations on widget refresh frequency, rapidly changing data is not suitable for display.
  2. Why can the system widget do more?
    System widgets are privileged. Even with TrollStore, third-party apps can’t bypass these limits (at least for now).
  3. Can you make transparent widgets?
    Sadly, true transparency is only supported on iOS 17+. For iOS 14–16, it’s technically impossible.
    However, if you are jailbroken, you can try Remove Widget Background by @Lessica, and add BatteryInfo to the list to simulate transparency using dark/light text over a matching wallpaper.
  4. Why does the widget refresh so slowly?
    System limitation. The app can request refresh, but the system decides when to actually refresh.
  5. I want an immediate refresh. What can I do?
    Restart device or Restart Userspace or Rebuild icon cache
    These actions usually trigger a widget refresh.
  6. My widget suddenly broke and shows no data. What happened?
    It does happen occasionally. Try restarting the device or rebuilding the icon cache.
  7. Can’t the widget refresh itself without opening the main app?
    Not at the moment. The data is fetched by the main app and passed to the widget.

If you have suggestions for widget layout or functionality, open an issue.


Zh:
1.1.9、1.2.0版本同时发布,小组件功能1个月之前就做好了,一直在测试,效果稳定了才决定放出来,开发途中遇到了TrollStore可能存在的bug,提交了issue,并且使用替代方案解决了。
电池数据已经上架到Havoc了,记得免费将这个App加入您的账户~

  1. 包含1.1.9版本中的所有更新内容
  2. 新增桌面小组件(iOS 14.0+),支持多种颜色的配色和3种样式,可以在桌面上显示电池健康度和循环次数。
  3. 新增锁屏小组件(iOS 16.0+),只是为了从锁屏能直接打开App,没有特殊功能

如果App或者小组件为您带来了焦虑,请勿使用
引用opa334的话:'I'm mainly building them for myself to use, but almost nobody else is like that.' [1]
为了减少用户焦虑,桌面小组件默认是不显示数据刷新时间的,您可以手动在桌面上长按小组件打开。第一次使用小组件之前请先打开主程序,app会给小组件发送数据。然后再到主屏幕添加小组件,如果仍然无数据,建议重启设备或重启用户空间
如果您不喜欢Widget 小组件,直接使用1.1.9版本即可
因为这个版本与iOS 14.0版本以下系统的用户无关,因此没有打包DEB包,直接使用1.1.9版本即可

小组件常见问题:

  1. 为什么只能显示电池健康度和循环次数?
    因为系统限制小组件的刷新频率,所以频繁需要刷新的数据不适合展示
  2. 为什么系统小组件能做到,这个做不到?
    系统是系统,第三方app是第三方app,就算有TrollStore也没办法突破限制,可能是我还没找到方法。
  3. 透明小组件能不能行?
    很遗憾,透明小组件需要iOS 17.0才能支持,iOS 17以下的系统版本无法实现(系统会强行给套一个半透明的背景),所以就没做了。
    不过也有替代方法,需要越狱,使用i_82大佬开发的Remove Widget Background,并且选择将电池信息app加入列表即可实现透明背景,然后在长按小组件给小组件设置一个符合您的壁纸的深色或浅色文字即可实现。
    新出来的那个dirtyZero或许也可以删除小组件背景,可以自己去试试,我没研究那个。不行的话就选个自己喜欢的颜色吧。
  4. 为什么小组件刷新那么慢?
    系统限制,App只能请求刷新,至于是否刷新,是系统来决定的
  5. 我很急,就是想刷新
    重启设备或重启用户空间或Rebuild icon cache 均可强行刷新小组件
  6. 小组件突然抽风了,不显示数据了
    确实偶尔会这样,很急的话建议重启设备或重启用户空间或Rebuild icon cache
  7. 刷新数据需要先打开主程序,不能小组件自己刷新吗?
    暂时不能,数据是主程序读取到的,然后发送给小组件显示的。未来或许可以做个后台服务,可能能实现,不确定,希望可以实现。饼+1

如果您对小组件有什么建议或者外观设计的建议可以提交issue,但是关于数据展示这个问题,暂时只能想到这两种数据,其余的需要频繁刷新的数据无法放到小组件里。

感谢小新帮忙设计了小组件的界面

Don't miss a new BatteryInfo release

NewReleases is sending notifications on new releases.