Why can't my phone be charged when it's on?

My phone can't be charged when is on

When I try to charge my phone for example when the battery is 40% , the phone cannot be charged
Re: My phone can't be charged when is on

Welcome to iMore! So, when does it charge? At 20%? 10%?
You don't give much information for us to determine anything.
What phone are you using? Which OS?

Original thread: https://forums.imore.com/threads/why-cant-my-phone-be-charged-when-its-on.361964/