{"action":"created","issue":{"url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/113","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/113/labels{/name}","comments_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/113/comments","events_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/113/events","html_url":"https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113","id":155107313,"number":113,"title":"Error - BackgroundGeolocation requires requestAlwaysAuthorization!","user":{"login":"dgobaud","id":240811,"avatar_url":"https://avatars.githubusercontent.com/u/240811?v=3","gravatar_id":"","url":"https://api.github.com/users/dgobaud","html_url":"https://github.com/dgobaud","followers_url":"https://api.github.com/users/dgobaud/followers","following_url":"https://api.github.com/users/dgobaud/following{/other_user}","gists_url":"https://api.github.com/users/dgobaud/gists{/gist_id}","starred_url":"https://api.github.com/users/dgobaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgobaud/subscriptions","organizations_url":"https://api.github.com/users/dgobaud/orgs","repos_url":"https://api.github.com/users/dgobaud/repos","events_url":"https://api.github.com/users/dgobaud/events{/privacy}","received_events_url":"https://api.github.com/users/dgobaud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2016-05-16T19:52:23Z","updated_at":"2016-05-16T21:57:01Z","closed_at":null,"body":"Hi, We're getting the below error in the console\r\n\r\n- BackgroundGeolocation requires requestAlwaysAuthorization!\r\n\r\nAny ideas?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/comments/219560878","html_url":"https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219560878","issue_url":"https://api.github.com/repos/transistorsoft/cordova-background-geolocation-lt/issues/113","id":219560878,"user":{"login":"dgobaud","id":240811,"avatar_url":"https://avatars.githubusercontent.com/u/240811?v=3","gravatar_id":"","url":"https://api.github.com/users/dgobaud","html_url":"https://github.com/dgobaud","followers_url":"https://api.github.com/users/dgobaud/followers","following_url":"https://api.github.com/users/dgobaud/following{/other_user}","gists_url":"https://api.github.com/users/dgobaud/gists{/gist_id}","starred_url":"https://api.github.com/users/dgobaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgobaud/subscriptions","organizations_url":"https://api.github.com/users/dgobaud/orgs","repos_url":"https://api.github.com/users/dgobaud/repos","events_url":"https://api.github.com/users/dgobaud/events{/privacy}","received_events_url":"https://api.github.com/users/dgobaud/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T21:57:01Z","updated_at":"2016-05-16T21:57:01Z","body":"Upgraded - same thing - works in simulator. Does not work on device.... but now no error. I guess broken device...?\r\n\r\n2016-05-16 14:53:17.660 MyApp[6907:3433491] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/55B65404-B07C-4AD0-98A8-AB51681E2C03/Library/Cookies/Cookies.binarycookies\r\n2016-05-16 14:53:17.729 MyApp[6907:3433491] Apache Cordova native platform version 4.1.1 is starting.\r\n2016-05-16 14:53:17.730 MyApp[6907:3433491] Multi-tasking -> Device: YES, App: YES\r\n2016-05-16 14:53:17.767 MyApp[6907:3433491] Using UIWebView\r\n2016-05-16 14:53:17.768 MyApp[6907:3433491] [CDVTimer][handleopenurl] 0.065029ms\r\n2016-05-16 14:53:17.770 MyApp[6907:3433491] Unlimited access to network resources\r\n2016-05-16 14:53:17.770 MyApp[6907:3433491] Unlimited access to network resources\r\n2016-05-16 14:53:17.770 MyApp[6907:3433491] [CDVTimer][intentandnavigationfilter] 1.385987ms\r\n2016-05-16 14:53:17.770 MyApp[6907:3433491] [CDVTimer][gesturehandler] 0.107050ms\r\n2016-05-16 14:53:17.786 MyApp[6907:3433491] [CDVTimer][file] 15.816033ms\r\n2016-05-16 14:53:17.797 MyApp[6907:3433491] [CDVTimer][splashscreen] 10.747015ms\r\n2016-05-16 14:53:17.805 MyApp[6907:3433491] [CDVTimer][statusbar] 8.148015ms\r\n2016-05-16 14:53:17.806 MyApp[6907:3433491] [CDVTimer][keyboard] 0.714004ms\r\n2016-05-16 14:53:17.823 MyApp[6907:3433491] [CDVTimer][socialsharing] 16.934037ms\r\n2016-05-16 14:53:17.823 MyApp[6907:3433491] [CDVTimer][TotalPluginStartup] 54.996014ms\r\n2016-05-16 14:53:17.875 MyApp[6907:3433491] createNotificationChecker\r\n2016-05-16 14:53:17.875 MyApp[6907:3433491] not coldstart\r\n2016-05-16 14:53:17.876 MyApp[6907:3433491] active\r\n2016-05-16 14:53:17.876 MyApp[6907:3433491] PushPlugin skip clear badge\r\n2016-05-16 14:53:18.158 MyApp[6907:3433491] Resetting plugins due to page load.\r\n2016-05-16 14:53:18.232 MyApp[6907:3433491] Finished load of: file:///var/containers/Bundle/Application/B49D304C-A881-452C-BC18-92E85B070A29/MyApp.app/www/index.html\r\n2016-05-16 14:53:18.335 MyApp[6907:3433491] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file...\r\n2016-05-16 14:53:18.463 MyApp[6907:3433627] -[CDVFileTransferDelegate connection:didReceiveResponse:] [Line 755] Streaming to file /var/mobile/Containers/Data/Application/55B65404-B07C-4AD0-98A8-AB51681E2C03/Library/NoCloud/prod/loader/loader.url.txt.download\r\n2016-05-16 14:53:18.463 MyApp[6907:3433627] File Transfer Finished with response code 200\r\n2016-05-16 14:53:18.463 MyApp[6907:3433627] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success\r\n2016-05-16 14:53:18.478 MyApp[6907:3433491] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file...\r\n2016-05-16 14:53:18.687 MyApp[6907:3433647] -[CDVFileTransferDelegate connection:didReceiveResponse:] [Line 755] Streaming to file /var/mobile/Containers/Data/Application/55B65404-B07C-4AD0-98A8-AB51681E2C03/Library/NoCloud/prod/loader/1.004/loader.js.download\r\n2016-05-16 14:53:18.688 MyApp[6907:3433647] File Transfer Finished with response code 200\r\n2016-05-16 14:53:18.689 MyApp[6907:3433647] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success\r\n2016-05-16 14:53:18.839 MyApp[6907:3433491] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file...\r\n2016-05-16 14:53:18.870 MyApp[6907:3433629] -[CDVFileTransferDelegate connection:didReceiveResponse:] [Line 755] Streaming to file /var/mobile/Containers/Data/Application/55B65404-B07C-4AD0-98A8-AB51681E2C03/Library/NoCloud/prod/current_version.json.download\r\n2016-05-16 14:53:18.871 MyApp[6907:3433629] File Transfer Finished with response code 200\r\n2016-05-16 14:53:18.871 MyApp[6907:3433629] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success\r\n2016-05-16 14:53:18.890 MyApp[6907:3433491] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file...\r\n2016-05-16 14:53:18.893 MyApp[6907:3433491] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file...\r\n2016-05-16 14:53:18.968 MyApp[6907:3433629] -[CDVFileTransferDelegate connection:didReceiveResponse:] [Line 755] Streaming to file /var/mobile/Containers/Data/Application/55B65404-B07C-4AD0-98A8-AB51681E2C03/Library/NoCloud/prod/scripts/1.004/main.js.download\r\n2016-05-16 14:53:19.023 MyApp[6907:3433630] -[CDVFileTransferDelegate connection:didReceiveResponse:] [Line 755] Streaming to file /var/mobile/Containers/Data/Application/55B65404-B07C-4AD0-98A8-AB51681E2C03/Library/NoCloud/prod/stylesheets/1.004/main.css.download\r\n2016-05-16 14:53:19.212 MyApp[6907:3433658] File Transfer Finished with response code 200\r\n2016-05-16 14:53:19.213 MyApp[6907:3433658] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success\r\n2016-05-16 14:53:19.342 MyApp[6907:3433658] File Transfer Finished with response code 200\r\n2016-05-16 14:53:19.343 MyApp[6907:3433658] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success\r\n2016-05-16 14:53:19.721 MyApp[6907:3433491] WARN: It looks like Stripe.js is not being loaded from https://js.stripe.com. Stripe does not support serving Stripe.js from your own domain.\r\n2016-05-16 14:53:19.734 MyApp[6907:3433491] GA: started UA-62595537-1\r\n2016-05-16 14:53:19.734 MyApp[6907:3433491] user get from api\r\n2016-05-16 14:53:19.734 MyApp[6907:3433491] login error \r\n2016-05-16 14:53:19.736 MyApp[6907:3433491] user get from api\r\n2016-05-16 14:53:19.736 MyApp[6907:3433491] user get from api\r\n2016-05-16 14:53:19.737 MyApp[6907:3433491] GA: track view Splash 0\r\n2016-05-16 14:53:19.737 MyApp[6907:3433491] ERROR: {\"data\":{},\"status\":401,\"config\":{\"method\":\"GET\",\"transformRequest\":[null],\"transformResponse\":[null],\"params\":{\"auth_key\":null},\"headers\":{\"Accept\":\"application/json, text/plain, */*\"},\"url\":\"https://www.startMyApp.com/api/v2/users/vehicles\"},\"statusText\":\"Unauthorized\"}\r\n2016-05-16 14:53:20.208 MyApp[6907:3433491] WARN: You are using Stripe.js in live mode over an insecure connection. This is considered unsafe. Please conduct live requests only on sites served over https. For more info, see https://stripe.com/help/ssl\r\n2016-05-16 14:53:20.208 MyApp[6907:3433491] GA: track view Home\r\n2016-05-16 14:53:25.171 MyApp[6907:3433491] GA: track view Splash 1\r\n2016-05-16 14:53:25.171 MyApp[6907:3433491] WARN: Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys\r\n2016-05-16 14:53:26.245 MyApp[6907:3433491] Can't find keyplane that supports type 5 for keyboard iPhone-PortraitTruffle-PhonePad; using 452364516_PortraitTruffle_iPhone-Complex-Pad_Default\r\n2016-05-16 14:53:29.789 MyApp[6907:3433491] Can't find keyplane that supports type 5 for keyboard iPhone-PortraitTruffle-PhonePad; using 452364516_PortraitTruffle_iPhone-Complex-Pad_Default\r\n2016-05-16 14:53:31.987 MyApp[6907:3433491] GA: track event Login success  \r\n2016-05-16 14:53:32.685 MyApp[6907:3433491] GA: started UA-62595537-1\r\n2016-05-16 14:53:32.685 MyApp[6907:3433491] user get from api\r\n2016-05-16 14:53:32.685 MyApp[6907:3433491] user get from api\r\n2016-05-16 14:53:32.803 MyApp[6907:3433491] GA: track view Home\r\n2016-05-16 14:53:33.578 MyApp[6907:3433491] GA: user id set 71313952-01e4-4c82-8e0d-d1a600931712\r\n2016-05-16 14:53:33.578 MyApp[6907:3433491] WARN: Can't register device for push notifications\r\n2016-05-16 14:53:33.578 MyApp[6907:3433491] WARN: Can't register device for push notifications\r\n2016-05-16 14:53:58.863 MyApp[6907:3433491] already had user\r\n2016-05-16 14:54:11.739 MyApp[6907:3433491] user get from api\r\n2016-05-16 14:54:11.739 MyApp[6907:3433491] Starting GeoLocationTracking for Filler\r\n2016-05-16 14:54:11.739 MyApp[6907:3433491] WARN: Warning: The method signature for BackgroundGeolocation#configure has changed!  Instead of providing the location-callback, error-callback to this method, you should now use the dedicated #onLocation method to provide these callabcks.  The #success, #failure callbacks provided to #configure will now fire to signal when the plugin is ready or failed to configure.  Please see the new documentation for #configure method and modify your code to respect the new signature ASAP.\r\n2016-05-16 14:54:11.743 MyApp[6907:3433491] ╔═════════════════════════════════════════════════\r\n2016-05-16 14:54:11.744 MyApp[6907:3433491] ║TSLocationManager ► SQLite init\r\n2016-05-16 14:54:11.744 MyApp[6907:3433491] ╠═════════════════════════════════════════════════\r\n2016-05-16 14:54:11.748 MyApp[6907:3433491] ✓ Opened database\r\n2016-05-16 14:54:11.748 MyApp[6907:3433491] ✓ Opened database\r\n2016-05-16 14:54:11.759 MyApp[6907:3433491] ✓ Created locations table\r\n2016-05-16 14:54:11.760 MyApp[6907:3433491] ✓ Unlocked all records\r\n2016-05-16 14:54:11.794 MyApp[6907:3433491] THREAD WARNING: ['BackgroundGeolocation'] took '25.536865' ms. Plugin should use a background thread.\r\n2016-05-16 14:54:13.585 MyApp[6907:3433491] active\r\n2016-05-16 14:54:13.585 MyApp[6907:3433491] PushPlugin skip clear badge\r\n"}}