iPhone Keeps Turning/Blinking/Flashing On and Off (While Charging)
If your iPhone keeps turning off and on while charging, it could be that a forced restart is in order. This restart allows the memory of your phone to refresh, which can help resolve any minor issues that may be causing your phone to turn off and on, however, this process varies for different iPhones.