{"action":"opened","issue":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/17","labels_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/17/comments","events_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/17/events","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/17","id":118921421,"number":17,"title":"UnimplementedBackgroundGeoLocation.start error","user":{"login":"srikanthreddyn143","id":7866310,"avatar_url":"https://avatars.githubusercontent.com/u/7866310?v=3","gravatar_id":"","url":"https://api.github.com/users/srikanthreddyn143","html_url":"https://github.com/srikanthreddyn143","followers_url":"https://api.github.com/users/srikanthreddyn143/followers","following_url":"https://api.github.com/users/srikanthreddyn143/following{/other_user}","gists_url":"https://api.github.com/users/srikanthreddyn143/gists{/gist_id}","starred_url":"https://api.github.com/users/srikanthreddyn143/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srikanthreddyn143/subscriptions","organizations_url":"https://api.github.com/users/srikanthreddyn143/orgs","repos_url":"https://api.github.com/users/srikanthreddyn143/repos","events_url":"https://api.github.com/users/srikanthreddyn143/events{/privacy}","received_events_url":"https://api.github.com/users/srikanthreddyn143/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-25T20:47:47Z","updated_at":"2015-11-25T20:47:47Z","closed_at":null,"body":"Hi,\r\n\r\nI have added below piece of code in ondeviceReady event. When I try to execute, I get 'Unimplemented API Emulation: BackgroundGeoLocation.start' in emulator. Can you please help me out.\r\n\r\n  /**\r\n        * This would be your own callback for Ajax-requests after POSTing background geolocation to your server.\r\n        */\r\n        var yourAjaxCallback = function(response) {\r\n            backgroundGeoLocation.finish();\r\n        };\r\n\r\n        /**\r\n        * This callback will be executed every time a geolocation is recorded in the background.\r\n        */\r\n        var callbackFn = function(location) {\r\n           \r\n            console.log('[js] BackgroundGeoLocation callback:  ' + location.latitude + ',' + location.longitude);\r\n\r\n           \r\n               \r\n            \r\n                yourAjaxCallback.call(this);\r\n           \r\n        };\r\n\r\n        var failureFn = function() {\r\n             console.log('BackgroundGeoLocation err');\r\n        };\r\n\r\n        // Only ios emits this stationary event\r\n        backgroundGeoLocation.onStationary(function(location) {\r\n          console.log('onStationary');\r\n        });\r\n\r\n        // BackgroundGeoLocation is highly configurable.\r\n        backgroundGeoLocation.configure(callbackFn, failureFn, {\r\n            desiredAccuracy: 10,\r\n            stationaryRadius: 50,\r\n            distanceFilter: 50,\r\n            locationTimeout: 30,\r\n            activityType: 'AutomotiveNavigation',\r\n            debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.\r\n            stopOnTerminate: false, // <-- enable this to clear background location settings when the app terminates\r\n            locationService: backgroundGeoLocation.service['ANDROID_DISTANCE_FILTER'],\r\n            fastestInterval: 5000\r\n        });\r\n\r\n      backgroundGeoLocation.start();\r\n\r\n\r\nThanks\r\nSri"}}