iPhone shut off at 30% battery and wouldn't turn on until I plugged it in?
I have an iPhone 6 with 16gb of storage. I have never had this issue, or any issue similar to this, before. I am currently up to date on iOS 9.2.1.
I was walking home from school today and while trying to call back my step-mother, my phone (which was at around 35% at this point) shut itself off without any prompting and displayed the little image it displays when your phone's charge is too low and it wants you to plug it in. I proceeded to get home and as soon as the charger was plugged into the phone (like, literally, the split second it was in there fully) the phone showed the white boot up screen and then booted up completely, displayed that it still had around 30% battery left. This caused a huge issue because my family thought something had happened, and I was wondering if anybody had any suggestions as to how to avoid this and fix any lingering issues this might cause.
Also, I wasn't sure where to post this so I sincerely apologize if this wasn't in the right section. Thanks!
iPhone 6, iOS 9.2.1