getMap().getCatchablePokemon() returns 0 often
This method often returns 0 for me with the latest changes. Are there other requirements to get this call to work? I am making sure my location is updated before the call and I am letting 1 second go by before making this call. For reference, I am navigating downtown San Diego.
getCatchablePokemon() uses MapObjects. Wait atleast 10s between calls to solve this.
10s seems kind of long to wait. Is the alternative to subscribe to the async version?
@ashgh you have to wait 10seconds before starting the next request. The request itself don´t need 10seconds.
@FabianTerhorst so I have to wait 10s before each request that uses MapObjects. Could I theory cache getMap().getMapObjects() and refresh that every 10 seconds instead?
@ashgh it works like you said. It is cached and refresh when you call it and the last refresh was more than 10s.
@mgorski-zlatan oh ok, so it's already being cached and updated. so really if the call returns 0 pokemon, there isn't anything you can really do except wait 10 seconds for it to refresh?
It's not being updated automatically, you still have to make a request that queries mapobjects.
@Sadye right, I have a thread that queries every second already. so as long as the request is being made, it will get updated every 10 seconds, is that right?
That's right. If you are querying every 1s, it will send network request every 10s.
@ashgh Take care that you are still receiving bullshit empty responses if something is wrong. Might want to catch those.
Are guys sure this is a throttling issue ? Looks to me something changed in the proto ?
unfortunately you're right :( something is changed, probably in mapcell proto
Yea, this looks broken to me like as of a couple hours ago.
please refer to #486