Chosen Solution

A couple days ago i bought second hand XS but it has a issue which is randomly shutting off. Sometimes if i hit right side switch its come back to life but most of the time i need to plug the charger to it to boot. Battery was supposedly changed by previous owner and he haven’t had it issue. Before i take the phone to the shop i was looking here for someone with similar problem but didnt get the answer. Could it be low quality battery or some other (connection i think) issue? There is no panic logs if that helps.

Got the phone back from battery replacement. It still has the same issue. For me its not worth dumping more money into it so probably gonna sell it and start looking for something else. Thanks for everyone answers.

It could certainly be the battery, but this sort of issue can be very complex. Having a look at the panic logs would be the biggest help. I might also have a look at the iPhone Randomly Shuts Off page for a few ideas.

Check the battery percentage in settings and see what the capacity is. Either way it sounds like it needs a new battery.

Hallo Wojtek, the log record is usually crucial in recognizing the fault, but it also requires behavioral confrontation. You said it shuts down. How often does it turn off? At what point does it turn off? Is it correlated with some action or application? All these questions you need to ask and think about. This is the only way to repair any device at this level of complexity. reprint the last panic.log here (the first 30 lines are enough), I’ll try to help interpret it.