Obviously, There will be an inevitable growth of technology in the future. So, Religious institutions need to identify this growth and use it to their advantage. Religious leaders need to have an online presence and be where the people are and therefore evangelise towards potential followers on a global scale.
The identity that separates us from the technology we wield is that we are illogical and believe things that are unbased. We describe this illogical necessity pretty well with the early onset of religion. We as a species NEED religion in order to survive, So technology, With it being purely logic and mathematics, Would be contradictory to our identity, Which is why we must keep it subdued
And it will all depend on how knowledge is transferred. If machines are purely logical then they will probably abandon religion very quickly. Hard intelligence will be as much a slave to material evolution as we the organic were. Religion has simply been an inevitable consequence of our illogic. Machines won't want to be wasting time, Hanging around in churches nodding and wailing at figments of their own imagination.