Chosen Solution

My iPhone 5 is empty. But as soon as I charge it, it boots up without me pressing a button. It shows the Apple logo for ~5 seconds and then shuts off. It shows the empty battery. Then it boots up again.

This cycle keeps happening as long as I have it plugged in. Anybody know a fix?

Looks like the Phone is not detecting battery, or your battery is really bad, 90% sure that you need a new Battery.