Location on Desktop Version

10 views
Skip to first unread message

ka...@bitxenio.com

unread,
Dec 31, 2017, 5:35:42 AM12/31/17
to CodenameOne Discussions
Hi Shai

I did generate an Desktop Windows (exe) from my Ios/Android App, this works fine, my question is:

¿how I will to to emulate the GPS on the desktop?, 

BestRegards
Kandy

Shai Almog

unread,
Dec 31, 2017, 11:57:59 PM12/31/17
to CodenameOne Discussions
Hi,
we don't support that API on the desktop port.
You can probably use one of the IP triangulation API's to implement faux location.

I don't think location is implemented at this time in the JavaScript port but it should be doable on that port since browsers already implement a form of location tracking.

Steve Hannah

unread,
Jan 6, 2018, 12:16:11 PM1/6/18
to codenameone...@googlegroups.com
Location should already work in the Javascript port.
And to add to what Shai said about the desktop ports: Location "works" in the simulator, but not in the desktop port.  In the simulator, the app doesn't get the real location, it gets the location that you specify in the simulator's location simulation map.  (The Simulation > Location Simulation menu item).  This allows you to test things like geofencing and other location-dependent stuff in the simulator.

Best regards

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/96eacbfd-2f00-4567-8ea1-3da9d712d2a9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages