{"action":"created","issue":{"url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/221","repository_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt","labels_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/221/comments","events_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/221/events","html_url":"https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/221","id":191495072,"number":221,"title":"MeteorJS: Background location not running after terminating app on iOS","user":{"login":"mikkelsjolin","id":1090770,"avatar_url":"https://avatars.githubusercontent.com/u/1090770?v=3","gravatar_id":"","url":"https://api.github.com/users/mikkelsjolin","html_url":"https://github.com/mikkelsjolin","followers_url":"https://api.github.com/users/mikkelsjolin/followers","following_url":"https://api.github.com/users/mikkelsjolin/following{/other_user}","gists_url":"https://api.github.com/users/mikkelsjolin/gists{/gist_id}","starred_url":"https://api.github.com/users/mikkelsjolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikkelsjolin/subscriptions","organizations_url":"https://api.github.com/users/mikkelsjolin/orgs","repos_url":"https://api.github.com/users/mikkelsjolin/repos","events_url":"https://api.github.com/users/mikkelsjolin/events{/privacy}","received_events_url":"https://api.github.com/users/mikkelsjolin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-11-24T11:19:49Z","updated_at":"2016-12-02T09:43:17Z","closed_at":null,"body":"<!--- Provide a general summary of the issue in the Title above -->\r\n\r\n## Environment\r\n* Plugin version: 2.2.0\r\n* Platform: iOS\r\n* OS version: 9.3 & 10.1\r\n* Xcode version: 8.1 (8B62)\r\n* Meteor version: 1.4.2.3\r\n* Device manufacturer / model: Apple, Simulator & iPhone 5s\r\n* Cordova version: 4.2.1\r\n* Cordova platform version: iOS 4.2.1\r\n* Plugin config:\r\n\r\n```javascript\r\nwindow.BackgroundGeolocation.configure({\r\n  desiredAccuracy: 0,\r\n  distanceFilter: 100,\r\n  locationUpdateInterval: 1000,\r\n  fastestLocationUpdateInterval: 1000,\r\n  stationaryRadius: 25,\r\n  activityRecognitionInterval: 10000,\r\n  stopTimeout: 5,\r\n  url: 'http://192.168.0.3:8080/locations',\r\n  autoSync: true,\r\n  debug: true,\r\n  logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,\r\n  stopOnTerminate: false,\r\n  startOnBoot: true\r\n  }\r\n  , function(state) {\r\n    if (!state.enabled) {\r\n      window.BackgroundGeolocation.start();\r\n    }\r\n});\r\n```\r\n\r\n## Expected Behavior\r\nLocations should keep coming through when app is terminated and simulator is in **Freeway Drive** mode.\r\n\r\n## Actual Behavior\r\nLocations stop coming through when app is terminated and simulator is still in **Freeway Drive** mode.\r\n\r\n## Steps to Reproduce\r\n<!--- reproduce this issue; include code to reproduce, if relevant -->\r\n([Install Meteor on your machine](https://www.meteor.com/install))\r\n1. Create simple Meteor app and cd into app folder\r\n`meteor create test-app`\r\n`cd test-app`\r\n2. Add iOS platform to application\r\n`meteor add-platform ios`\r\n3. Add **cordova-background-geolocation-lt** to project\r\n`meteor add cordova:cordova-background-geolocation-lt@2.2.0`\r\n4. Add **BackgroundGeolocation.configure** to the main.js file in client folder\r\n`Template.hello.onRendered(function(){ window.BackgroundGeolocation.configure({...}) });`\r\n5. Build app for iOS\r\n`meteor run ios-device`\r\n6. In xcode, make sure correct capabilities are enabled (Location updates & Background fetch)\r\n7. Run application in iPhone simulator (9.3 or 10.1)\r\n8. Make sure you have the **[background-geolocation-console](https://github.com/transistorsoft/background-geolocation-console)** app running on port 8080 and that your simulator's location settings are set to **Freeway Drive**\r\n9. Validate that locations are coming through to **background-geolocation-console** when the iOS app is running\r\n10. Teminate iOS app running in simulator and wait for app to wake up in background\r\n11. Check if locations start coming through to **background-geolocation-console** app\r\n\r\n\r\n## Context\r\nFirst of all, great work on this plugin! If I get this up and running, I will be upgrading and implementing this in my Android version as well 👍 \r\n\r\nAt the moment I an trying to implement background tracking in an app I am developing using MeteorJS. This is causing me some issues which is why I wanted to test if it was because of something in my app, or some with this plugin, or the combination of this plugin and Meteor.\r\n\r\nThat's why I tried to implement your plugin in the most basic version of a Meteor iOS app.\r\n\r\nSadly, it shows the same issues as with my own app. Therefore I'm thinking the issue could be with your plugin in combination with Meteor JS. \r\n\r\nI'm really hoping to make this work with your help :)\r\n\r\n**Thank you!**\r\n\r\n## Debug logs\r\n**iOS 10.1 Simulator** System log:\r\nhttp://pastebin.com/raw/L2hd5ntA\r\n\r\n**background-geolocation-console** Terminal log:\r\nhttp://pastebin.com/raw/JFe8mpBD"},"comment":{"url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/comments/264413792","html_url":"https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/221#issuecomment-264413792","issue_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/221","id":264413792,"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-12-02T09:43:17Z","updated_at":"2016-12-02T09:43:17Z","body":"Icons are different (and correct) because I hadn't triggered my ON switch,\ntriggering iOS to ask permission. The icons reflect my disabled location\npermission.\n\nWhatever problem you're having must be related to your dev environment. Are\nyou SURE you set up the Sample App following the steps *exactly* as\ndirected?\n\nI booted the SampleApp from scratch and it worked perfectly.\n\nOn Fri, Dec 2, 2016 at 4:07 AM Mikkel Sjølin <notifications@github.com>\nwrote:\n\n> Yes, I have tried toggling the on/off switch multiple times.\n> What I'm noticing is that your icons in the bottom left are different than\n> mine:\n>\n> [image: image]\n> <https://cloud.githubusercontent.com/assets/1090770/20828281/16f41e3c-b877-11e6-8ffc-1186e6c65e07.png>\n>\n> —\n> You are receiving this because you commented.\n>\n>\n> Reply to this email directly, view it on GitHub\n> <https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/221#issuecomment-264406953>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AAA6l-KX9N0MHsYJoGgbkbn4RwdMjwfNks5rD9_igaJpZM4K7ivM>\n> .\n>\n-- \nSnet form Gmail Mobile\n"}}
{"actor":{"display_login":"christocracy"}}