Adding battery to BBB, battery doesn't charge.

I have added a battery to my BBB, following this https://www.element14.com/community/community/designcenter/single-board-computers/next-gen_beaglebone/blog/2013/08/10/bbb--rechargeable-on-board-battery-system.

The board works on battery power for about 2.5 hours, but it doesn’t charge the battery. What do I need to do to make it charge? It seems the power the battery gets for charging is les than it needs. I use a BBB and the Olimex battery from the link.

I am using this battery now, and it works fine. I connected it as in the link I posted.
https://www.antratek.nl/polymer-lithium-ion-battery-2000mah

and this connector
https://www.antratek.nl/jst-battery-connector-254