{"action":"created","issue":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/163","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/163/labels{/name}","comments_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/163/comments","events_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/163/events","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/163","id":176811979,"number":163,"title":"alpha.08 : Error inserting batch: no such table: location","user":{"login":"anymos","id":7828003,"avatar_url":"https://avatars.githubusercontent.com/u/7828003?v=3","gravatar_id":"","url":"https://api.github.com/users/anymos","html_url":"https://github.com/anymos","followers_url":"https://api.github.com/users/anymos/followers","following_url":"https://api.github.com/users/anymos/following{/other_user}","gists_url":"https://api.github.com/users/anymos/gists{/gist_id}","starred_url":"https://api.github.com/users/anymos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anymos/subscriptions","organizations_url":"https://api.github.com/users/anymos/orgs","repos_url":"https://api.github.com/users/anymos/repos","events_url":"https://api.github.com/users/anymos/events{/privacy}","received_events_url":"https://api.github.com/users/anymos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-09-14T04:27:19Z","updated_at":"2016-09-15T07:52:27Z","closed_at":"2016-09-15T07:42:03Z","body":"#<!--- Provide a general summary of the issue in the Title above -->\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Plugin version:alpha-8\r\n* Platform: iOS\r\n* OS version:9.3\r\n* Device manufacturer and model:ipad pro\r\n* Cordova version (`cordova -v`):Apache Cordova native platform version 4.1.0 is starting.\r\n* Cordova platform version (`cordova platform ls`) : Apache Cordova native platform version 4.1.0 is starting.\r\n* Plugin configuration options: \r\n* Link to your project:\r\n\r\n## Context\r\nrunning on the device \r\n\r\n2016-09-14 11:24:11.333 [341:47001] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/B636752A-5407-414B-B07C-1F719A24E392/Library/Cookies/Cookies.binarycookies\r\n2016-09-14 11:24:11.408 [341:47001] Apache Cordova native platform version 4.1.0 is starting.\r\n2016-09-14 11:24:11.408 [341:47001] Multi-tasking -> Device: YES, App: YES\r\n2016-09-14 11:24:11.460 [341:47001] Using WKWebView\r\n2016-09-14 11:24:11.460 [341:47001] [CDVTimer][handleopenurl] 0.048995ms\r\n2016-09-14 11:24:11.462 [341:47001] [CDVTimer][intentandnavigationfilter] 1.370013ms\r\n2016-09-14 11:24:11.462 [341:47001] [CDVTimer][gesturehandler] 0.051975ms\r\n2016-09-14 11:24:11.514 [341:47001] Serving asset bundle version: a8feb266d733bd600511eb7d198119c35395361a\r\n[INFO] GCDWebServer started on port 12496 and reachable at http://localhost:12496/\r\n2016-09-14 11:24:11.515 [341:47001] [CDVTimer][webapplocalserver] 53.530037ms\r\n2016-09-14 11:24:11.525 [341:47001] [CDVTimer][statusbar] 9.514987ms\r\n2016-09-14 11:24:11.549 [341:47001] [CDVTimer][splashscreen] 23.597002ms\r\n2016-09-14 11:24:11.570 [341:47001] [CDVTimer][backgroundgeolocation] 20.833015ms\r\n2016-09-14 11:24:11:569 [341:47001] LocationManager iOS9 detected\r\n2016-09-14 11:24:11.573 [341:47001] [CDVTimer][keyboard] 3.112972ms\r\n2016-09-14 11:24:11.574 [341:47001] [CDVTimer][localstorage] 0.536025ms\r\n2016-09-14 11:24:11.574 [341:47001] [CDVTimer][TotalPluginStartup] 113.664031ms\r\n2016-09-14 11:24:12:016 [341:47001] LocationManager didChangeAuthorizationStatus 0\r\n2016-09-14 11:24:43:916 [341:47308] LocationManager stop\r\n2016-09-14 11:24:43.920 [341:47283] DB Error: 1 \"no such table: __META\"\r\n2016-09-14 11:24:43.920 [341:47283] DB Query: SELECT db_version FROM __META\r\n2016-09-14 11:24:43.920 [341:47283] DB Path: /var/mobile/Containers/Data/Application/B636752A-5407-414B-B07C-1F719A24E392/Library/cordova_bg_geolocation.db\r\n2016-09-14 11:24:43.935 [341:47283] INSERT INTO __META (id,db_version,created,last_updated) VALUES (1,0,datetime(),null) failed code: 0: message: not an error\r\n2016-09-14 11:24:43.936 [341:47283] Current db version: 0\r\n2016-09-14 11:24:43.936 [341:47283] Error inserting batch: no such table: location\r\n2016-09-14 11:24:43.936 [341:47283] DROP TABLE location failed code: 1: message: no such table: location\r\n2016-09-14 11:24:44.425 [341:47001] THREAD WARNING: ['GoogleMaps'] took '350.446777' ms. Plugin should use a background thread.\r\n\r\n## Expected Behavior\r\nNo db error\r\n\r\n## Actual Behavior\r\ndb error\r\n\r\n## Possible Fix\r\n<!--- Not obligatory, but suggest a fix or reason for the bug -->\r\n\r\n## Steps to Reproduce\r\n<!--- Provide a link to a live example, or an unambiguous set of steps to -->\r\n<!--- reproduce this bug include code to reproduce, if relevant -->\r\n1.\r\n2.\r\n3.\r\n4.\r\n\r\n## Context\r\ntesting the backgroudn mode in ios\r\n\r\n## Debug logs\r\n2016-09-14 11:24:11.333 [341:47001] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/B636752A-5407-414B-B07C-1F719A24E392/Library/Cookies/Cookies.binarycookies\r\n2016-09-14 11:24:11.408 [341:47001] Apache Cordova native platform version 4.1.0 is starting.\r\n2016-09-14 11:24:11.408 [341:47001] Multi-tasking -> Device: YES, App: YES\r\n2016-09-14 11:24:11.460 [341:47001] Using WKWebView\r\n2016-09-14 11:24:11.460 [341:47001] [CDVTimer][handleopenurl] 0.048995ms\r\n2016-09-14 11:24:11.462 [341:47001] [CDVTimer][intentandnavigationfilter] 1.370013ms\r\n2016-09-14 11:24:11.462 [341:47001] [CDVTimer][gesturehandler] 0.051975ms\r\n2016-09-14 11:24:11.514 [341:47001] Serving asset bundle version: a8feb266d733bd600511eb7d198119c35395361a\r\n[INFO] GCDWebServer started on port 12496 and reachable at http://localhost:12496/\r\n2016-09-14 11:24:11.515 [341:47001] [CDVTimer][webapplocalserver] 53.530037ms\r\n2016-09-14 11:24:11.525 [341:47001] [CDVTimer][statusbar] 9.514987ms\r\n2016-09-14 11:24:11.549 [341:47001] [CDVTimer][splashscreen] 23.597002ms\r\n2016-09-14 11:24:11.570 [341:47001] [CDVTimer][backgroundgeolocation] 20.833015ms\r\n2016-09-14 11:24:11:569 [341:47001] LocationManager iOS9 detected\r\n2016-09-14 11:24:11.573 [341:47001] [CDVTimer][keyboard] 3.112972ms\r\n2016-09-14 11:24:11.574 [341:47001] [CDVTimer][localstorage] 0.536025ms\r\n2016-09-14 11:24:11.574 [341:47001] [CDVTimer][TotalPluginStartup] 113.664031ms\r\n2016-09-14 11:24:12:016 [341:47001] LocationManager didChangeAuthorizationStatus 0\r\n2016-09-14 11:24:43:916 [341:47308] LocationManager stop\r\n2016-09-14 11:24:43.920 [341:47283] DB Error: 1 \"no such table: __META\"\r\n2016-09-14 11:24:43.920 [341:47283] DB Query: SELECT db_version FROM __META\r\n2016-09-14 11:24:43.920 [341:47283] DB Path: /var/mobile/Containers/Data/Application/B636752A-5407-414B-B07C-1F719A24E392/Library/cordova_bg_geolocation.db\r\n2016-09-14 11:24:43.935 [341:47283] INSERT INTO __META (id,db_version,created,last_updated) VALUES (1,0,datetime(),null) failed code: 0: message: not an error\r\n2016-09-14 11:24:43.936 [341:47283] Current db version: 0\r\n2016-09-14 11:24:43.936 [341:47283] Error inserting batch: no such table: location\r\n2016-09-14 11:24:43.936 [341:47283] DROP TABLE location failed code: 1: message: no such table: location\r\n2016-09-14 11:24:44.425 [341:47001] THREAD WARNING: ['GoogleMaps'] took '350.446777' ms. Plugin should use a background thread.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/comments/247261103","html_url":"https://github.com/mauron85/cordova-plugin-background-geolocation/issues/163#issuecomment-247261103","issue_url":"https://api.github.com/repos/mauron85/cordova-plugin-background-geolocation/issues/163","id":247261103,"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-09-15T07:52:27Z","updated_at":"2016-09-15T07:52:27Z","body":"will try to reduce number of those message in future version though"}}
{"actor":{"display_login":"mauron85"}}