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

Pokemons catched through this API not appearing in the official app

Open meher19 opened this issue 10 years ago • 2 comments

Description: I create a littre program that founds pokemons in a given location and catch them automatically, this worked well yesterday, but since today this not working anymore, in my app when i call catchPokemonWithRazzBerry() i get CATCH_SUCCESS status, but when i check in the official app i can't see catched pokemons.

This is concerned part of my code :

// After this you can access the api from the PokemonGo instance :
        go.getPlayerProfile(); // to get the user profile
        go.getInventories(); // to get all his inventories (pokemon, backpack, egg, incubator)
        go.setLocation(x,y,1); // set your position to get stuff around (altitude is not needed, you can use 1 for exemple)
        List<CatchablePokemon> catchablePokemon = go.getMap().getCatchablePokemon(); // get all currently catchables pokemons around you

        TimeUnit.SECONDS.sleep(2);

        System.out.println("Found Pokemons : ");
        for (CatchablePokemon cp : catchablePokemon) {
            // You need to Encounter first.
            EncounterResult encResult = cp.encounterPokemon();
            // if encounter was succesful, catch
            if (encResult.wasSuccessful()) {
                System.out.println("Encounted:" + cp.getPokemonId());
                CatchResult result = cp.catchPokemonWithRazzBerry();
                System.out.println("Attempt to catch:" + cp.getPokemonId() + " " + result.getStatus());
            }
        }

Thanks.

meher19 avatar Jul 29 '16 22:07 meher19

Can you check if getplayerprofile getusername is the right one?

FabianTerhorst avatar Jul 29 '16 23:07 FabianTerhorst

That's it ! my wife was logged in my laptop with her Google account, this is why !

Sorry about this, you helped me to figure it out !

Thanks

meher19 avatar Jul 29 '16 23:07 meher19