diff --git a/README.md b/README.md index 2efb123..51b24da 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,13 @@ This lib will emitevent wheneaver the GPS status change, like when the permissio #### Methods +Open the system Settings to enable user to toggle Location on. + +The parameter `openInDetails` (android only) is used to open app details screen (android M+ only), so the user can toggle the permission in `Permissions` tab. + ```javascript -//Open the system Settings to enable user to toggle Location on -GPSState.openSettings(); +//openInDetails defaults to true +GPSState.openSettings(openInDetails:boolean); ``` ```javascript diff --git a/index.js b/index.js index a48603b..00fb171 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,7 @@ GPSState.getStatus = ()=>{ return GPSState._getStatus(); } -GPSState.openSettings = (openInDetails=false)=>{ +GPSState.openSettings = (openInDetails=true)=>{ GPSState._openSettings(openInDetails); }