Had same problem, needed to adjust the charger alot, It only happened when I was using a replacement charger, There can be 3 problems.
1. The charger is broken, get a new original one.
2. The battery is done, get a new original one.
3. The charging socket is loose, get it fixed.