Check if IOS device is charging

Hi Unity Community.

Is there a way for me to see in game if a device is charging?

Thank you.

You will need to make a plugin and specifically use the UIDevice class, exposing the batteryState enum which will tell you if it’s charging or not.