Hello, I think you have to problem in the charging circuit, and it can be a simple diode that prevent the current to go from the battery to the charger which is bad, if you have used your UE Megaboom in the bathroom or in a place where there is lot of humidity then the electronic board inside it can be shorted, try to clean it maybe that will solve your problem.
Good luck ;).