https://github.com/leptos-null/batsie
An example project using the private BatteryCenter framework, available on iOS and watchOS
https://github.com/leptos-null/batsie
batterycenter ios ios-private-frameworks private-framework private-frameworks
Last synced: about 1 month ago
JSON representation
An example project using the private BatteryCenter framework, available on iOS and watchOS
- Host: GitHub
- URL: https://github.com/leptos-null/batsie
- Owner: leptos-null
- License: cc-by-4.0
- Created: 2019-01-19T04:26:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-01T01:12:02.000Z (almost 6 years ago)
- Last Synced: 2025-04-02T02:38:15.686Z (2 months ago)
- Topics: batterycenter, ios, ios-private-frameworks, private-framework, private-frameworks
- Language: Objective-C
- Size: 30.3 KB
- Stars: 4
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Batsie
An example project using the private BatteryCenter framework, available on iOS and watchOS. BatteryCenter is responsible for the Battery Today Widget on iOS.
On Reddit there were a lot of requests for a watchOS complication that shows the battery percentages of all connected devices, similar to the Battery Today Widget on iOS.
The problem with existing apps, is that the iPhone battery percentage must be obtained from the iOS device (using UIDevice API). Due to the app not being open all the time, the required communication is not dependable.
I was interested in whether this framework would be able to get the battery percentage of the iPhone, directly from the Watch. This project demonstrates that only the local Watch information is available.