This question already has an answer here:

In Pokemon Go when I try to fight a gym it starts the first battle and then exits from the battle, back to the gym screen.

Why is this happening?

marked as duplicate by galacticninja, Mathias711, Wrigglenite, Elva, nine Jul 27 '16 at 12:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


This could be happening because you get too far away from the gym.

This will do this if you leave the gym area, unlike catching pokemon, where once you engaged with a wild pokemon, you can go away and the engagement continues, you must be close to the gym at all times to battle or train in it.

Not the answer you're looking for? Browse other questions tagged or ask your own question.