{"action":"created","issue":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/83","repository_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation","labels_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/83/comments","events_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/83/events","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/83","id":158090658,"number":83,"title":"Question: `keepRunning` property in background mode","user":{"login":"shyamal890","id":6606965,"avatar_url":"https://avatars.githubusercontent.com/u/6606965?v=3","gravatar_id":"","url":"https://api.github.com/users/shyamal890","html_url":"https://github.com/shyamal890","followers_url":"https://api.github.com/users/shyamal890/followers","following_url":"https://api.github.com/users/shyamal890/following{/other_user}","gists_url":"https://api.github.com/users/shyamal890/gists{/gist_id}","starred_url":"https://api.github.com/users/shyamal890/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyamal890/subscriptions","organizations_url":"https://api.github.com/users/shyamal890/orgs","repos_url":"https://api.github.com/users/shyamal890/repos","events_url":"https://api.github.com/users/shyamal890/events{/privacy}","received_events_url":"https://api.github.com/users/shyamal890/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-06-02T08:56:21Z","updated_at":"2016-06-04T08:02:10Z","closed_at":null,"body":"> Warning: You probably have to set your cordova app to keep running by keepRunning property to true (this is the default now).\r\n\r\nPlease let me know if I am interpreting correctly:\r\n\r\n1. When the app is minimized by the user (background mode) there is no guarantee that geolocation plugin will trigger a callback. To overcome this, the app shouldn't pause in background. This can be achieved through https://github.com/katzer/cordova-plugin-background-mode by calling `cordova.plugins.backgroundMode.enable();` alternative to `keepRunning` mentioned in docs (please consider adding this \r\n`<platform name=\"android\">\r\n    ...\r\n    <preference name=\"KeepRunning\" value=\"false\" />\r\n` ) \r\n\r\n2. When app is in background I get 2 notifications: `a) The app is running in background doing heavy task and b) App is running. Touch for more info.` Is there any way I can remove these? Or lower it down to one?\r\n\r\n3. If point 1 is correct would this cause issues during IOS app review, as the app would always keep running in background?\r\n\r\n4. When the user kills/force-stops the app(not background mode), geolocation plugin will continue logging location in local db and callback won't be triggered. These location can then be retrieved by calling `backgroundGeoLocation.getLocations(success, fail)`. [Android Only]\r\n\r\n5. Point 4 function `backgroundGeoLocation.getLocations(success, fail)` is Android only, what happens in case of IOS?\r\n\r\n6. If point4 is correctly interpreted, how do I know if there are locations stored in local db?"},"comment":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/comments/223743019","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/83#issuecomment-223743019","issue_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/83","id":223743019,"user":{"login":"christocracy","id":14999,"avatar_url":"https://avatars.githubusercontent.com/u/14999?v=3","gravatar_id":"","url":"https://api.github.com/users/christocracy","html_url":"https://github.com/christocracy","followers_url":"https://api.github.com/users/christocracy/followers","following_url":"https://api.github.com/users/christocracy/following{/other_user}","gists_url":"https://api.github.com/users/christocracy/gists{/gist_id}","starred_url":"https://api.github.com/users/christocracy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christocracy/subscriptions","organizations_url":"https://api.github.com/users/christocracy/orgs","repos_url":"https://api.github.com/users/christocracy/repos","events_url":"https://api.github.com/users/christocracy/events{/privacy}","received_events_url":"https://api.github.com/users/christocracy/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T08:02:10Z","updated_at":"2016-06-04T08:02:10Z","body":"There was an obscure [reason for it](https://github.com/christocracy/cordova-plugin-background-geolocation/commit/16309141066823efcd2b417f7e6f051af209d7b9).  I don't exactly recall why."}}
{"actor":{"display_login":"christocracy"}}