Li-Ion batteries can be float charged indefinitely without any problems. Once the battery's voltage is equal to the open circuit voltage of the charger, no current flows apart from what's necessary to replenish the loss through internal leakage. The problem is the charge current needs to be lowered, if the cell voltage is below a certain level, but that's a non-issue if it doesn't need to be charged quickly: a low charge current can be provided whatever the voltage. A dead cell detection circuit should be included, so it doesn't attempt to charge the battery, if it's fallen below a certain voltage, as it can be dangerous. The only issue I can see is that Li-Ion batteries store better at 50% charge.
If the battery doesn't need to be charge quickly, there's no need to worry about termination of NiMh batteries, which can safely be trickle charged at low currents. A current of
1/
10C is acceptable for 10 to 20 hours and much lower currents,
1/
30C to
1/
300C, depending on the manufacturer, can be applied indefinitely. A timer controlling a current source all that's needed to switch from trickle to maintenance charge.
https://en.wikipedia.org/wiki/Nickel%E2%80%93metal_hydride_battery#Trickle_charging