To set the GPS to high accuracy, we call the Knox Standard API as below but the positioning accuracy is set only by GPS. Please check the API for errors.

getLocationPolicy(context).setLocationProviderState("gps", true);
getLocationPolicy(context).setLocationProviderState("network", true);
getLocationPolicy(context).setLocationProviderState("passive", true);
Konrad Sobczak
Jan 11, 2019
12:38 pm

Hello Yoon Eui Jeong,

APIs you are using are designed to check if given Location Provider is currently enabled by admin, it does not turn on chosen Location Mode. For now Knox SDK only supports turning GPS location on by using public boolean startGPS (boolean start) of LocationPolicy class.


Best regards, Konrad.