My iPad sometimes says “not charging” even when plugged in. I can sometimes guess why this might be - connected to a computer, etc. But in this case, it charges when on but once the cover is closed it won’t charge.
Why? What’s the system logic and what is being protected?