Can't charge from USB wall charger, battery or car USB port.

Strange as it appears to work now. It seems that when the battery was almost depleted it won’t charge, only on my Mac. It just flashed orange or somthing and turned off. Strange. It now charges OK solid amber light. 

Perhaps it was buy?