With iOS 9 Apple added a Low Power Mode to the iPhone. It extends battery life by stopping some battery heavy features such as email fetch, Hey Siri and background app refresh until you can recharge the device.
It is important to understand that it is the user who decides to enter low power mode. You need to go into the battery settings to turn it on.
To detect LPM you have to be in the couple iOS 9.X / iPhone:
- For iOS 8.X, you need test availablity before use it