Hello 3727030,
I have a similar problem, but the solution that worked for you has not worked for me.
Since I bought my Moto G4 three months ago, it has seemed to charge fine and work fine in every aspect. However, one night, out of the blue, it would not charge anymore. Silly me, I let the...