Android-SmartWebView
Android-SmartWebView copied to clipboard
force gps location enabled to use app.
how to enable strict gps permission enabled as i am working on a app that uses current location. i want to display an alert to enable gps permission.
also i noticed that if gps is turned off the cookie value remains the same as last value. it should either get blank.
how to enable strict gps permission enabled as i am working on a app that uses current location.
with every coming android update all permissions are totally upto user to enable of not, even restricting the usage time. so you can't practically force anything on user. instead you can show notification everytime user disabled GPS or denies the permission request.
also i noticed that if gps is turned off the cookie value remains the same as last value. it should either get blank.
you can do it from main activity, just unset the cookies when GPS value is null.
thanks let me try the cookie thing. also how can i show an alert that gps is not enabled .