You do not catch Groudon in TPPC — you are rewarded a shiny Groudon for accumulating enough points as a member of Team Magma.
The specific requirement is rank. Once you reach Captain within Team Magma, the shiny Groudon is added directly to your box. There is no roaming encounter and no item to use; it arrives as a reward for progression inside that team.
This trips people up because in the mainline Pokémon games Groudon is a legendary you seek out and battle, so players search maps and routes looking for a spawn that does not exist here. TPPC handles its legendaries through progression rewards instead.
So the answer is: join Team Magma, climb to Captain, and check your box.