PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

getCatchablePokemon method still returning 0 results

Open meher19 opened this issue 10 years ago • 43 comments

i updated api dependency to use the last version (0.3.4), but this method still return no results, i'm pretty sure in the location where i execute this methos there is many pokemons !

This is related to the closed issue : #486

Maybe i missed something to make it work again ?

meher19 avatar Aug 08 '16 12:08 meher19

@Grover-c13 has to upload 0.4.0 to jcenter.

FabianTerhorst avatar Aug 08 '16 12:08 FabianTerhorst

so the jcenter library still not updated ?

meher19 avatar Aug 08 '16 12:08 meher19

Not right now.

FabianTerhorst avatar Aug 08 '16 12:08 FabianTerhorst

ok, can you update this topic when it's done ?

Thanks.

meher19 avatar Aug 08 '16 12:08 meher19

Hi @FabianTerhorst Great job out there on the comments and setSignature() implementation. I am using your fork while @Grover-c13 is still working on the release, and am experiencing the same issues as @meher19 . No error, no pokemons.

I double checked that the valid SensorInfo and DeviceInfo was set correctly and put into signature. I feel like I'm missing something... Thoughts?

loicortola avatar Aug 08 '16 22:08 loicortola

@loicortola there released a new version 0.33.0 for the android app. But the server behavior shouldn´t change. You are getting the right profile name returned?

FabianTerhorst avatar Aug 09 '16 01:08 FabianTerhorst

So are other requests working like pokestops?

FabianTerhorst avatar Aug 09 '16 01:08 FabianTerhorst

Nope, all 0.

loicortola avatar Aug 09 '16 05:08 loicortola

I am testing on android, i used the 0.4.0 version and I get an empty list of catchable pokemons too

Luigik2806 avatar Aug 09 '16 09:08 Luigik2806

I have tested it now and im getting pokemon back when im setting the device info. Take a look at #516 for sample code.

FabianTerhorst avatar Aug 09 '16 10:08 FabianTerhorst

SensorInfo sensorInfo = new SensorInfo();
sensorInfo.setAngleNormalizedY(0);
go.setSensorInfo(sensorInfo);

This code doesn't work, SensorInfo() is private and go.setSensorInfo(sensorInfo); doesn't exist, if I remove this 3 lines I still get an empty list

Luigik2806 avatar Aug 09 '16 10:08 Luigik2806

@Luigik2806 because it's only on PR.

mgorski-mg avatar Aug 09 '16 11:08 mgorski-mg

I updated the dependency to 0.4.0, it's worked for me without adding the DeviceInfo and SensorInfo staff, what's the utility of this lines ?

meher19 avatar Aug 09 '16 12:08 meher19

Can you check if you get something back with the same Code from #516 in the comments.

FabianTerhorst avatar Aug 09 '16 12:08 FabianTerhorst

when not should you create a new account.

FabianTerhorst avatar Aug 09 '16 12:08 FabianTerhorst

By adding DevideInfo it's still working, but i can't add SensorInfo because i can't find this class in the latest dependecy version.

meher19 avatar Aug 09 '16 12:08 meher19

You have to use my fork from the #516 to test this

FabianTerhorst avatar Aug 09 '16 12:08 FabianTerhorst

Which dependecy i have to use to import your fork from Gradle ?

meher19 avatar Aug 09 '16 12:08 meher19

Now I have tested both method, adding depency 'com.pokegoapi:PokeGOAPI-library:0.4.0-alpha1' and putting the code and its dependecy. Still get empty list...., I'm finding catchablePokemon in Parco Sempione, Milan, so I am sure that there are some catchable pokemons

Luigik2806 avatar Aug 09 '16 13:08 Luigik2806

You have to Clone the fork and generate the jar.

FabianTerhorst avatar Aug 09 '16 14:08 FabianTerhorst