{"action":"created","issue":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/196","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/196/labels{/name}","comments_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/196/comments","events_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/196/events","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/196","id":186102631,"number":196,"title":"Question about different behaviour between iOS and Android","user":{"login":"zulhfreelancer","id":3416976,"avatar_url":"https://avatars.githubusercontent.com/u/3416976?v=3","gravatar_id":"","url":"https://api.github.com/users/zulhfreelancer","html_url":"https://github.com/zulhfreelancer","followers_url":"https://api.github.com/users/zulhfreelancer/followers","following_url":"https://api.github.com/users/zulhfreelancer/following{/other_user}","gists_url":"https://api.github.com/users/zulhfreelancer/gists{/gist_id}","starred_url":"https://api.github.com/users/zulhfreelancer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulhfreelancer/subscriptions","organizations_url":"https://api.github.com/users/zulhfreelancer/orgs","repos_url":"https://api.github.com/users/zulhfreelancer/repos","events_url":"https://api.github.com/users/zulhfreelancer/events{/privacy}","received_events_url":"https://api.github.com/users/zulhfreelancer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-29T21:41:58Z","updated_at":"2016-11-29T17:37:06Z","closed_at":null,"body":"Hi,\n\nI tested your [example app](https://github.com/mauron85/cordova-plugin-background-geolocation-example) and I noticed some different behaviours between iOS and Android which I want clarification from you.\n## My Environment\n- Plugin version: ^2.2.0\n- Platform: iOS and Android\n- OS version: iOS 10.1 and Android 4.1.2\n- Device manufacturer and model: iPhone 5 and Nokia XL (Android)\n- Cordova version (`cordova -v`): 6.3.0\n- Cordova platform version (`cordova platform ls`): ios 4.2.1 and android 5.2.2\n- Plugin configuration options: not touched - I used your configuration options\n- App settings: see screenshots below\n- Link to project: https://github.com/mauron85/cordova-plugin-background-geolocation-example\n\n![img_2016-10-30 05 36 26](https://cloud.githubusercontent.com/assets/3416976/19832900/e173b82c-9e62-11e6-913e-bee19c1dfac9.jpg)\n\n![img_2016-10-30 05 36 38](https://cloud.githubusercontent.com/assets/3416976/19832902/eceffd82-9e62-11e6-988a-dc80c3a2051e.jpg)\n\n![img_2016-10-30 05 36 44](https://cloud.githubusercontent.com/assets/3416976/19832904/f67c290c-9e62-11e6-9d11-fc6eebc631ee.jpg)\n## Context & Actual Behavior\n\n| App state | iOS send HTTP POST? | Android send HTTP POST? |\n| --- | :-: | --: |\n| Foreground | Yes | Yes |\n| Right after goes background | Yes | Yes |\n| Backround | No | Yes |\n| Screen locked/switch-off (phone in stand-by mode) | No | Yes |\n## Expected Behavior\n\nWhy iOS can't send the location data when the app is in background and when the screen locked? Or, do I missed something important?\n\n**Note**\n\nThe way I test the HTTP POST is by running my `rails server` and see the incoming requests from the app. Example params that I saw:\n\n```\nStarted POST \"/pages/index\" for 192.168.1.64 at 2016-10-30 05:02:28 +0800\nProcessing by PagesController#index as */*\n  Parameters: {\"_json\"=>[{\"latitude\"=>3.123006159667078, \"longitude\"=>101.6054567579111, \"altitude\"=>37.42809677124023, \"location_type\"=>\"current\", \"speed\"=>-1, \"time\"=>1477774946370.314, \"accuracy\"=>65, \"altitudeAccuracy\"=>10, \"heading\"=>-1, \"bearing\"=>-1}], \"page\"=>{\"_json\"=>[{\"latitude\"=>3.123006159667078, \"longitude\"=>101.6054567579111, \"altitude\"=>37.42809677124023, \"location_type\"=>\"current\", \"speed\"=>-1, \"time\"=>1477774946370.314, \"accuracy\"=>65, \"altitudeAccuracy\"=>10, \"heading\"=>-1, \"bearing\"=>-1}]}}\n  Rendered pages/index.html.erb within layouts/application (0.1ms)\nCompleted 200 OK in 194ms (Views: 193.1ms | ActiveRecord: 0.0ms)\n```\n"},"comment":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/comments/263641012","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/196#issuecomment-263641012","issue_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/196","id":263641012,"user":{"login":"mauron85","id":359450,"avatar_url":"https://avatars.githubusercontent.com/u/359450?v=3","gravatar_id":"","url":"https://api.github.com/users/mauron85","html_url":"https://github.com/mauron85","followers_url":"https://api.github.com/users/mauron85/followers","following_url":"https://api.github.com/users/mauron85/following{/other_user}","gists_url":"https://api.github.com/users/mauron85/gists{/gist_id}","starred_url":"https://api.github.com/users/mauron85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauron85/subscriptions","organizations_url":"https://api.github.com/users/mauron85/orgs","repos_url":"https://api.github.com/users/mauron85/repos","events_url":"https://api.github.com/users/mauron85/events{/privacy}","received_events_url":"https://api.github.com/users/mauron85/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T17:37:06Z","updated_at":"2016-11-29T17:37:06Z","body":"Hmm. You're not first one asking these. But I like your description and table. Can you post plugin debug logs? Check docs for instructions."}}
{"actor":{"display_login":"mauron85"}}