breautek commented on issue #273: URL: https://github.com/apache/cordova-plugin-geolocation/issues/273#issuecomment-2309037802
> hello, > > i am not getting any errors but my android cordova app using this plugin is consistently returning google headquarters in silicon valley. any idea why this might be? oh, this is in the emulator on my mac. my friends android phone puts him Pakistan consistently. This cordova app is built with Android SK 34 and latest 5.0.0 version of the plugin. And, we've used high accuracy as well. The iOS version of this plugin functions correctly. Thank you. Android emulators are mocked. You need to manually send "location" events via the emulator's `Extended Controls`. <img width="773" alt="Screenshot 2024-08-25 at 8 22 07 PM" src="https://github.com/user-attachments/assets/96e92fd8-c398-40f3-a7d2-289cda654042"> Then you can choose and set your location which will trigger location update in the emulator. <img width="818" alt="Screenshot 2024-08-25 at 8 22 55 PM" src="https://github.com/user-attachments/assets/aad7eb0c-51fc-41f6-8086-8e63de504257"> Physical devices will obviously use GPS hardware, but android emulators does not use GPS hardawre, even if the host has one present afaik. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org