iPhone 12 Pro Max shut down unexpectedly with a crackling sound
I have an iPhone 12 Pro Max. I was just using WhatsApp and my battery level was above 50%. The phone made a crackling sound (like an electrical short, it seems like this sound came from the speakers, meaning it is not really an electric short) and the the phone went off. Next minute I kept pressing the power button to turn the phone on, and then it turned on and working fine. Is this a software issue or a hardware issue? And what does apple say about this?
iPhone 12 Pro Max, iOS 16