Android-SmartWebView icon indicating copy to clipboard operation
Android-SmartWebView copied to clipboard

force gps location enabled to use app.

Open frogsuite opened this issue 6 years ago • 3 comments

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.

frogsuite avatar Oct 03 '19 14:10 frogsuite

also i noticed that if gps is turned off the cookie value remains the same as last value. it should either get blank.

frogsuite avatar Oct 03 '19 14:10 frogsuite

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.

mgks avatar Oct 15 '19 04:10 mgks

thanks let me try the cookie thing. also how can i show an alert that gps is not enabled .

frogsuite avatar Oct 17 '19 00:10 frogsuite