Mobile App Sensor Update iOS

Hi there.
I have following problem.

Two iPhones:
iPhone XS Max
iPhone 16pro Max

Both with HA mobile App Version 2024.9.4 and iOS 18.0

XS Max:
If i Plug in the charging cable, the status change from “not charging“ to “charging“. It‘s not important if the App is in forgeground or not.

16pro Max:
only updates the stats if the App is in forgeground.

The Setting on Both devices are the same.

Someone any idea to fix this Problem?
I Need the charging status for some automations in the evening.

Thanks