lsapan / pgoapi-swift

A Pokemon GO API library for Swift
MIT License
97 stars 29 forks source link

Cannot show Pokemons and Forts outside US... #62

Open netleave opened 7 years ago

netleave commented 7 years ago

Hi, Isapan…

I cannot get anything with the following position: (22.380837, 114.206024)

But, when I switch back to the position (37.33233141, -122.0312186), there is many Pokemons and Forts as normal…

I just wonder there is any trick to switch servers between differnet countries…

Hope you can help. Thanks. =)

quangpc-zz commented 7 years ago

right, I have same problem too.

quangpc-zz commented 7 years ago

@netleave did you find the solution?

netleave commented 7 years ago

@quangpc I am just thinking of the issue being related to the signature problem... any idea...?

quangpc-zz commented 7 years ago

@netleave I haven't found the solution :)

netleave commented 7 years ago

@quangpc Okay, let's wait for @lsapan , see if he can give us some hints.

PokemonGoSucks commented 7 years ago

The problem is the hashing and signature.

netleave commented 7 years ago

@PokemonGoSucks Thanks for your help. Let me see if I can work on it. By the way, why you think of both of hashing and signature being related?

PokemonGoSucks commented 7 years ago

I think it's working now, confirm with me?

I suspected hashing because this problem happened before (see #56), and it turned out that the request hash was being generated incorrectly.

quangpc-zz commented 7 years ago

@PokemonGoSucks I changed niahash.swift but still can not get map objects outside US.

PokemonGoSucks commented 7 years ago

Try changing the altitude to 10.1.

quangpc-zz commented 7 years ago

@PokemonGoSucks thanks you. it's working now :)

quangpc-zz commented 7 years ago

@PokemonGoSucks sorry but maybe it still not working. because yesterday I use an US location to test (ooops), today I use some other locations and map objects not return.

PokemonGoSucks commented 7 years ago

You might be soft IP banned for traveling too quickly. Use proxies for different locations and wait 24 hours. Also make sure you have no API exceptions like captcha.

quangpc-zz commented 7 years ago

@PokemonGoSucks the strange thing here is US location is still working. I did check all exceptions. If I use locations on US, I can get map objects normally.