-
Notifications
You must be signed in to change notification settings - Fork 473
Add device info to requests #108
Conversation
👍 |
Would it be possible to generate a random a device_id with https://docs.python.org/3/library/uuid.html? |
Sadly this raises an attribute error here, is there anything else to change? |
@imapokemon4 Yeah. import uuid
device_id = uuid.uuid4().hex |
@Noctem does the other device info matter? |
@imapokemon4 Presumably, yes. If you're going to go to the trouble of generating a UUID, you might as well provide the rest of the information. We don't really know what they will and won't check on their end. |
@Noctem I think what I meant ask was: Does the other device info need to correspond at all to the generated UUID? |
@imapokemon4 still getting File "/poke/scanner/pgoapi/pgoapi.py", line 223, in call |
@imapokemon4 Oh, no. It should just be random, unless there's a difference in lengths between iOS and Android or something. But at least on iOS it's just 32 hexadecimal digits. |
@peterbaumert You're getting that error while trying to use a randomly generated UUID? |
@peterbaumert I haven't actually tried it yet myself. |
Im getting this error no matter what device info I use :D |
Or did get_map_objects arguments change also and I'm missing some? |
@peterbaumert I believe #109 fixes that attribute error. |
@Noctem perfect thank you so much, will try later when i got time |
Does the |
@Noctem I'm getting the Here is what I have:
|
@trippyhat the pr #109 from @Noctem isn't merged yet so you need to do that manually. |
@peterbaumert Thanks, I added in #109 and it's working now! |
Is the |
UUID is nothing related with your SIM or Carrier... |
* Start to use the signature interface. * Added dummy class to show how to use: DeviceInfo ActivityStatus SensorInfo * sensor data is randomly generated (#4249) * including activity status details resulted in uk6 fail (no map objects), need more iOS dumps to identify the issue * Switch the upstream of pgoapi to joelgreen, he will handle the upupstream PR as well.
Currently a blank device info is sent. This adds support for passing in your own device info.
Also persists
session_hash
to last between requests.Example usage: