0

How can I force the devices to turn on gps (location) when connected to enterprise network, and how can I access to latitude and longitude of it in wso2_emm?

Community
  • 1
  • 1
user3806649
  • 1,257
  • 2
  • 18
  • 42

1 Answers1

1

Since WSO2 EMM agent is running as the device administrator on the device, it has relevant permissions to retrieve location (GPS) information of the device at any time. Furthermore, the Android agent retrieves the latest updated location information over three different methods such as WiFi, Network and GPS. So you will be able to see the latest updated location from the map in device details page. Other than that EMM does not provide co-ordinates (latitude and longitude) directly.

mharindu
  • 167
  • 3
  • So it should always show device location on device's tab on device management, but it didn't show the location. what is store for location in emm, As it show google map it should store co-ordinates or place's name. I want to find the place of the device, if someone forget wher he put it. – user3806649 Aug 03 '15 at 10:03
  • Obviously it should appear in the device detail page. However if you want to view it from the database, check the **"received_data"** column of the **"notifications"** table under **"INFO"** record in the **WSO2EMM_DB**. – mharindu Aug 03 '15 at 11:41
  • [Here](http://tinypic.com/view.php?pic=15wypdt&s=8) is the database's query result, As I don't know the correct feature_description and feature_code for location I test which i suggest from D:\EMM\Carbone_Home\dbscripts\emm\mysql. but no record with this info is available. Also it didn't show location on device detail [page](http://tinypic.com/r/20o6y8/8). Thanks – user3806649 Aug 03 '15 at 17:40
  • Location didn't work when device location is turn off, How can I trun it on using wso2 agent, so that I could access to it always? In the agent logcat I see that for location it send latitude and longitude for location object. how can I access to this in emm server? (but this is logcat error taged by processMessage!) – user3806649 Aug 25 '15 at 08:10