Water purification tablets were started to be used by the army in 1940 and were used notably in the North African, Mediterranean, and European theaters.
Still they had issues like horrible taste and smell, not effective against everything, long waiting times before the water is drinkable...