Post

Replies

Boosts

Views

Activity

Reply to Battery level getting from UIDevice is not accurate on iOS17
@Frameworks Engineer It looks like this is not working at all on MacCatalyst builds. I'm consistently getting batteryLevel: 0 and the following error printed to console while debugging: Error retrieving battery status: result=-536870207 percent=-2109898751 hasExternalConnected=0 isCharging=4 isFullyCharged=244 Is this also intended behavior? We're depending on this value while in fullscreen mode for our users to have a semi-accurate representation of their battery life, specifically for MacBook users.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’24
Reply to Battery level getting from UIDevice is not accurate on iOS17
@Frameworks Engineer It looks like this is not working at all on MacCatalyst builds. I'm consistently getting batteryLevel: 0 and the following error printed to console while debugging: Error retrieving battery status: result=-536870207 percent=-2109898751 hasExternalConnected=0 isCharging=4 isFullyCharged=244 Is this also intended behavior? We're depending on this value while in fullscreen mode for our users to have a semi-accurate representation of their battery life, specifically for MacBook users.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’24