You can use the Siri shortcuts option to make sure that it is performed correctly on iPhone.
The main reason why you can choose to do so would be because you can make it say something.
Whenever you connect the charger, you can then customize the Siri shortcuts to respond to it very easily.