There is basically no evidence that any of these "batteries" were actually used as such. A basic galvanic cell is so simple in design that it is quite easy to make one by accident. The items alleged to be galvanic cells (such as the "Baghdad battery") don't appear to have any leads that would make it easy to make use of the electricity, which makes their identification as a battery quite suspect. There were attempts to claim that such "batteries" had been used for electroplating but as it turns out the examples presented were not actually electroplated, besides which the "batteries" (even if configured with maximal effectiveness for use as batteries) would not have been very good at the job.
As for the claim of the description of a galvanic cell in an "ancient indian text", aka the "Agastya Samhita", there is no good scholarship establishing the existence of the text at the supposed date, and every indication that it was manufactured in more modern times.
There's simply no credible evidence for the existence of galvanic cells in ancient times.
Sources?
One article article says they split water with it, but why were they farming hydrogen?