iPhone应用程序在后台运行时是否可以接收电池通知

iPhone应用程序在后台运行时是否可以接收电池通知,iphone,background,battery,Iphone,Background,Battery,在后台运行的iPhone应用程序能否接收电池通知 我的应用已注册电池通知: 电池通知-(void)电池级别更改:(NSNotification*)通知{[self.tableView reloadData];} (void)batteryStateDidChange:(NSNotification*)通知{[self.tableView重载数据];} 非常感谢您的帮助。否。只有当您的应用程序在前台时,才会调用该代码

在后台运行的iPhone应用程序能否接收电池通知

我的应用已注册电池通知:

  • 电池通知-
    (void)电池级别更改:(NSNotification*)通知{[self.tableView reloadData];}

  • (void)batteryStateDidChange:(NSNotification*)通知{[self.tableView重载数据];}


非常感谢您的帮助。

否。只有当您的应用程序在前台时,才会调用该代码