I'm sure this has been asked before, but I can't seem to find it and I'm not sure how to rephrase it.
In IOS 9+ when the power gets low iOS gives you a prompt to optionally engage low power mode.
I'd like be able to pause the activity in my app when this alert is visible.
I'm sure there is a delegate method that I can use. Does anyone know the name of it?
Thanks!
Or maybe you're just looking for
- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
in your main AppDelegate.m This is called whenever any system popup is shown.