I have got iPhone Xs Max which has same issue that people talking about it. It doesn’t charge or wake up when I plug in the charger it came with. However there is no issue seen when I use my old iPhone 6s Plus charger. Regardless how long the iPhone has been sleep, it does charge immediately when I plug it in with old charger.
I believe issue is from cable or the charger itself while everyone saying it’s the iPhone which has hardware or software issue. This is just my experience and opinion which I hope help people.