Search code examples
iosobjective-ciphonealertvolume

Dismissing iphone low battery alert programmatically


I'm writing a camera app where the user will be unable to access the touch screen without significant effort. I'm using the (+) volume button to take videos, I would like to either:

1) Ignore the 10% and 20% volume alert that pops up entirely. I'd be surprised if I apple let me do this.

OR

2) Allow the user to dismiss the popup with the (+) button. i.e. dismiss the popup programmatically.

There are SO questions related to this, I've tried disabling battery monitoring from this post when the batter hits ~11% and 21%, but that does not work. This other post talks about detecting all interrupts, and going through all the views when a battery interrupt happens, its a good idea but since its from 2009 and is a bit hacky (might be rejected by the store) I thought I'd ask you all whether you knew of any other way I might do this.


Solution

  • Not possible. The low battery alert is a system alert. It can't be controlled from any 3rd party app.