How can I receive battery level notification when lock screen?

Hello!


I am working on an APP (Mister Battery on Apple store) which can help the user to calculate the battery charge speed.


After Apple using the new background model, I can't receive any battery level notification when lock screen. Before iOS 12, I was using UIApplicationExitsOnSuspend = true which was deprecated, it works very well.


I don't send any data to server when in the background or play music or something, so all the background mode seems don't fit for my APP. I know there is a queue will send the notification when the APP back to front.


I am wondering is there any way to receive batteryLevelDidChangeNotification when the APP is in lock screen even in background?


Thanks!


Joe