proposals icon indicating copy to clipboard operation
proposals copied to clipboard

Power Mode

Open xzilja opened this issue 4 years ago • 2 comments

Plugin Request

Name: power-mode Package: @capacitor-community/power-mode

Platform(s)

ios, android

Existing Solutions

Not aware of any

Description

iOS and Android devices can be put into low power / battery saver mode. It would be useful to have access / subscribe to this information in order to avoid doing power intensive tasks. Also, requestAnimationFrame is throttled to 30fps in this case, so I think it is important to give users an ability to do something in these cases i.e. notify users to why they are seeing throttled performance. This info is not available in web apis

xzilja avatar Dec 19 '20 11:12 xzilja

I needed this functionality for a project so just ended up making a plugin. You can view it here: https://github.com/danbunkr/power-mode. If the capacitor community is interested in adding it I'd be happy to help make that happen

AdlerJS avatar Sep 07 '23 15:09 AdlerJS

This should happen. Perf in low power mode is quite noticeable. It would be great to be able to adapt behaviors in low power mode. I'm surprised this hasn't gotten more traction!

drakedeatonuk avatar Sep 18 '24 20:09 drakedeatonuk