Getting empty CatchablePokemon List
Im getting empty list of CatchablePokemon when i do the following: go.getMap().getMapObjects(9).getCatchablePokemons()
It is strange cause there are Pokemon where im looking for. Also no Exceptions, only empty list.
Version: Im using "com.pokegoapi:library:0.3"
Niantic changed the time between getMapObjects again from 5 to 10 seconds :|
Really? Im doing like 25 calls to getCatchablePokemons(), is there any solution to this?
ive updated the API to address it. 0.3.3 onwards
Do i have to do something special in my code? or it is handled by the API?
handled by the API, it will retain a copy of map objects for 10 seconds and then on the next request get a fresh copy.
Ok thanks!
EDIT: when i make the calls, they go all in a loop with no time to wait between them, im still getting no pokes. But if i add a 10 seconds sleep, it works as expected.
Does it mean that i have to manage the time between calls myself?
@David6390 its your loop. You have to wait 10sec inside the loop.