A good start would be if the British gave Anglicans some sort of preferential treatment (e.g., lower taxes, the ability to hold high civil/political/military posts, that sort of thing), which would incentivise conversion. Initially this would be mostly among the upper classes who could most expect to benefit, although if enough of them converted, Anglicanism might end up being viewed as the most prestigious faith, leading to more people from lowlier backgrounds converting too. I doubt this would get the country to be majority Anglican by 1947 (it took over four hundred years for Egypt to become majority-Muslim, which is probably about the timescale we'd be looking at here), but Anglicanism would be more widespread, and the Anglican Church in India more influential, than IOTL.