Chosen Solution

Is there a problem on the battery or maybe in the lighting cable that i’m using while my iphone is charging?

In the advanced control panel you can make the battery visible in home screen. And make sure there is no internal fault as it keeps restarting.