Open robertmclaws opened 8 years ago
It's already done in DeviceInfo (PokemonGo_UWP.Utils.DeviceInfosIOS) class in main app. I don't think that Api should collect it, it is responsibility of the app. And if we want emulate more devices, this needs to stay in this DeviceInfo class, because these data are different on different devices.
Having started to import the existing DeviceInfo
code to the new GameServices
, it is pulling info directly from the legacy GameClient
class, which is not going to be possible moving forward. The relevant code will need to be moved to the new LocationService, which will combine buffer the location data until it is ready to be dumped into the Signature.
I'm not sure if the Signature code is doing this right now, but the real game samples GPS location every second, and stores it in a buffer to be sent the next time GetMapObjects is called. We need to do the same thing, either at the ApiClient or GameService level.