transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
655 stars 277 forks source link

Error - BackgroundGeolocation requires requestAlwaysAuthorization! #113

Closed dgobaud closed 8 years ago

dgobaud commented 8 years ago

Hi, We're getting the below error in the console

Any ideas?

Thank you!

christocracy commented 8 years ago

What does your app show in privacy-location services?

On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:

Hi, We're getting the below error in the console

  • BackgroundGeolocation requires requestAlwaysAuthorization!

Any ideas?

Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113

Snet form Gmail Mobile

dgobaud commented 8 years ago

You mean in the app settings in iOS right? Settings -> Privacy -> Location Services -> My App -> Checkmark is next to Always.

The location prompt was also correct - Allow "My App" to access your location even when you are not using the app?" I tapped Allow.

christocracy commented 8 years ago

Are you using cordova-plugin-Geolocation as well?

On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:

You mean in the app settings in iOS right? Settings -> Privacy -> Location Services -> My App -> Checkmark is next to Always.

The location prompt was also correct - Allow "My App" to access your location even when you are not using the app?" I tapped Allow.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219529837

Snet form Gmail Mobile

dgobaud commented 8 years ago

no

christocracy commented 8 years ago

And is the plugin tracking?

On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:

You mean in the app settings in iOS right? Settings -> Privacy -> Location Services -> My App -> Checkmark is next to Always.

The location prompt was also correct - Allow "My App" to access your location even when you are not using the app?" I tapped Allow.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219529837

Snet form Gmail Mobile

dgobaud commented 8 years ago

No i'm not getting location updates

christocracy commented 8 years ago

Delete app from device, reinstall.

On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:

No i'm not getting location updates

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219530631

Snet form Gmail Mobile

dgobaud commented 8 years ago

Have done that about 10 times along with clean iOS builds and resetting all plugins with ionic state reset...

christocracy commented 8 years ago

Show me screenshot of your .plist

On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:

Have done that about 10 times along with clean iOS builds and resetting all plugins with ionic state reset...

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219531216

Snet form Gmail Mobile

dgobaud commented 8 years ago

image

christocracy commented 8 years ago

It's not a problem with the plugin, more likely something in your configuration/app code.

If you install my sample app, I'm sure you won't have a problem.

I haven't touched this part of the code in months. If there were a problem, I'd be flooded with hundreds of complaints.

On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:

Have done that about 10 times along with clean iOS builds and resetting all plugins with ionic state reset...

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219531216

Snet form Gmail Mobile

dgobaud commented 8 years ago

There isn't any specific setting I need to add in the plist or xcode project right...?

christocracy commented 8 years ago

You have both WhenInUse and AlwaysDescription defined and WhenInUse is empty. Delete the WhenInUse key.

On Monday, May 16, 2016, Chris Scott christocracy@gmail.com wrote:

It's not a problem with the plugin, more likely something in your configuration/app code.

If you install my sample app, I'm sure you won't have a problem.

I haven't touched this part of the code in months. If there were a problem, I'd be flooded with hundreds of complaints.

On Monday, May 16, 2016, David Gobaud <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Have done that about 10 times along with clean iOS builds and resetting all plugins with ionic state reset...

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219531216

Snet form Gmail Mobile

Snet form Gmail Mobile

dgobaud commented 8 years ago

Didn't fix it :(

dgobaud commented 8 years ago

did clean and rebuild - same problem. It gives the right prompt and has the right access in settings...

christocracy commented 8 years ago

How much experience do you have with my plugin?

On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:

did clean and rebuild - same problem. It gives the right prompt and has the right access in settings...

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219533804

Snet form Gmail Mobile

christocracy commented 8 years ago

Show me the log of plugin booting and minimize app after boot is complete

On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:

did clean and rebuild - same problem. It gives the right prompt and has the right access in settings...

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219533804

Snet form Gmail Mobile

dgobaud commented 8 years ago

It used to work I don't know why it broke.

2016-05-16 13:49:18.623 MyApp[6839:3411093] Apache Cordova native platform version 4.1.1 is starting. 2016-05-16 13:49:18.625 MyApp[6839:3411093] Multi-tasking -> Device: YES, App: YES 2016-05-16 13:49:18.671 MyApp[6839:3411093] Using UIWebView 2016-05-16 13:49:18.672 MyApp[6839:3411093] [CDVTimer][handleopenurl] 0.063956ms 2016-05-16 13:49:18.673 MyApp[6839:3411093] Unlimited access to network resources 2016-05-16 13:49:18.673 MyApp[6839:3411093] Unlimited access to network resources 2016-05-16 13:49:18.674 MyApp[6839:3411093] [CDVTimer][intentandnavigationfilter] 1.230001ms 2016-05-16 13:49:18.674 MyApp[6839:3411093] [CDVTimer][gesturehandler] 0.091970ms 2016-05-16 13:49:18.690 MyApp[6839:3411093] [CDVTimer][file] 15.861988ms 2016-05-16 13:49:18.702 MyApp[6839:3411093] [CDVTimer][splashscreen] 12.405992ms 2016-05-16 13:49:18.710 MyApp[6839:3411093] [CDVTimer][statusbar] 7.909000ms 2016-05-16 13:49:18.711 MyApp[6839:3411093] [CDVTimer][keyboard] 0.762999ms 2016-05-16 13:49:18.726 MyApp[6839:3411093] [CDVTimer][socialsharing] 14.935017ms 2016-05-16 13:49:18.726 MyApp[6839:3411093] [CDVTimer][TotalPluginStartup] 54.248989ms 2016-05-16 13:49:18.733 MyApp[6839:3411093] createNotificationChecker 2016-05-16 13:49:18.733 MyApp[6839:3411093] not coldstart 2016-05-16 13:49:18.734 MyApp[6839:3411093] active 2016-05-16 13:49:18.734 MyApp[6839:3411093] PushPlugin skip clear badge 2016-05-16 13:49:18.855 MyApp[6839:3411093] Resetting plugins due to page load. 2016-05-16 13:49:18.942 MyApp[6839:3411093] Finished load of: file:///var/containers/Bundle/Application/4ADF9928-445D-40C4-9847-30785CD0162B/MyApp.app/www/index.html 2016-05-16 13:49:19.058 MyApp[6839:3411093] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file... 2016-05-16 13:49:19.178 MyApp[6839:3411150] -[CDVFileTransferDelegate connection:didReceiveResponse:] [Line 755] Streaming to file /var/mobile/Containers/Data/Application/65E3BFCE-05AE-469E-82E2-23BE36370620/Library/NoCloud/prod/loader/loader.url.txt.download 2016-05-16 13:49:19.179 MyApp[6839:3411150] File Transfer Finished with response code 200 2016-05-16 13:49:19.179 MyApp[6839:3411150] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success 2016-05-16 13:49:19.224 MyApp[6839:3411093] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file... 2016-05-16 13:49:19.252 MyApp[6839:3411127] -[CDVFileTransferDelegate connection:didReceiveResponse:] [Line 755] Streaming to file /var/mobile/Containers/Data/Application/65E3BFCE-05AE-469E-82E2-23BE36370620/Library/NoCloud/prod/current_version.json.download 2016-05-16 13:49:19.253 MyApp[6839:3411127] File Transfer Finished with response code 200 2016-05-16 13:49:19.253 MyApp[6839:3411127] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success 2016-05-16 13:49:19.695 MyApp[6839:3411093] 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. 2016-05-16 13:49:19.705 MyApp[6839:3411093] GA: started UA-62595537-1 2016-05-16 13:49:19.705 MyApp[6839:3411093] user get from api 2016-05-16 13:49:19.708 MyApp[6839:3411093] user get from api 2016-05-16 13:49:19.854 MyApp[6839:3411093] 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 2016-05-16 13:49:19.855 MyApp[6839:3411093] GA: track view Home 2016-05-16 13:49:21.421 MyApp[6839:3411093] GA: user id set 71313952-01e4-4c82-8e0d-d1a600931712 2016-05-16 13:49:21.422 MyApp[6839:3411093] auto starting 2016-05-16 13:49:21.422 MyApp[6839:3411093] bgGeo installed 2016-05-16 13:49:21.446 MyApp[6839:3411093] WARN: Can't register device for push notifications 2016-05-16 13:49:21.446 MyApp[6839:3411093] WARN: Can't register device for push notifications 2016-05-16 13:49:21.463 MyApp[6839:3411093] State check, current state [object Object] 2016-05-16 13:49:21.480 MyApp[6839:3411093] - BackgroundGeolocation requires requestAlwaysAuthorization! 2016-05-16 13:49:21.492 MyApp[6839:3411093] THREAD WARNING: ['BackgroundGeolocation'] took '29.510010' ms. Plugin should use a background thread. 2016-05-16 13:49:21.493 MyApp[6839:3411093] bgGeo configured 2016-05-16 13:49:21.508 MyApp[6839:3411093] THREAD WARNING: ['BackgroundGeolocation'] took '15.433838' ms. Plugin should use a background thread. 2016-05-16 13:49:21.543 MyApp[6839:3411093] bgGeo started 2016-05-16 13:49:22.721 MyApp[6839:3411093] goo! [object Object] 7 2016-05-16 13:49:24.916 MyApp[6839:3411093] WARN: Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

christocracy commented 8 years ago

What version are you using? This looks super old.

On Mon, May 16, 2016 at 9:51 PM, David Gobaud notifications@github.com wrote:

It used to work I don't know why it broke.

2016-05-16 13:49:18.623 MyApp[6839:3411093] Apache Cordova native platform version 4.1.1 is starting. 2016-05-16 13:49:18.625 MyApp[6839:3411093] Multi-tasking -> Device: YES, App: YES 2016-05-16 13:49:18.671 MyApp[6839:3411093] Using UIWebView 2016-05-16 13:49:18.672 MyApp[6839:3411093] [CDVTimer][handleopenurl] 0.063956ms 2016-05-16 13:49:18.673 MyApp[6839:3411093] Unlimited access to network resources 2016-05-16 13:49:18.673 MyApp[6839:3411093] Unlimited access to network resources 2016-05-16 13:49:18.674 MyApp[6839:3411093] [CDVTimer][intentandnavigationfilter] 1.230001ms 2016-05-16 13:49:18.674 MyApp[6839:3411093] [CDVTimer][gesturehandler] 0.091970ms 2016-05-16 13:49:18.690 MyApp[6839:3411093] [CDVTimer][file] 15.861988ms 2016-05-16 13:49:18.702 MyApp[6839:3411093] [CDVTimer][splashscreen] 12.405992ms 2016-05-16 13:49:18.710 MyApp[6839:3411093] [CDVTimer][statusbar] 7.909000ms 2016-05-16 13:49:18.711 MyApp[6839:3411093] [CDVTimer][keyboard] 0.762999ms 2016-05-16 13:49:18.726 MyApp[6839:3411093] [CDVTimer][socialsharing] 14.935017ms 2016-05-16 13:49:18.726 MyApp[6839:3411093] [CDVTimer][TotalPluginStartup] 54.248989ms 2016-05-16 13:49:18.733 MyApp[6839:3411093] createNotificationChecker 2016-05-16 13:49:18.733 MyApp[6839:3411093] not coldstart 2016-05-16 13:49:18.734 MyApp[6839:3411093] active 2016-05-16 13:49:18.734 MyApp[6839:3411093] PushPlugin skip clear badge 2016-05-16 13:49:18.855 MyApp[6839:3411093] Resetting plugins due to page load. 2016-05-16 13:49:18.942 MyApp[6839:3411093] Finished load of: file:///var/containers/Bundle/Application/4ADF9928-445D-40C4-9847-30785CD0162B/MyApp.app/www/index.html 2016-05-16 13:49:19.058 MyApp[6839:3411093] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file... 2016-05-16 13:49:19.178 MyApp[6839:3411150] -[CDVFileTransferDelegate connection:didReceiveResponse:] [Line 755] Streaming to file /var/mobile/Containers/Data/Application/65E3BFCE-05AE-469E-82E2-23BE36370620/Library/NoCloud/prod/loader/loader.url.txt.download 2016-05-16 13:49:19.179 MyApp[6839:3411150] File Transfer Finished with response code 200 2016-05-16 13:49:19.179 MyApp[6839:3411150] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success 2016-05-16 13:49:19.224 MyApp[6839:3411093] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file... 2016-05-16 13:49:19.252 MyApp[6839:3411127] -[CDVFileTransferDelegate connection:didReceiveResponse:] [Line 755] Streaming to file /var/mobile/Containers/Data/Application/65E3BFCE-05AE-469E-82E2-23BE36370620/Library/NoCloud/prod/current_version.json.download 2016-05-16 13:49:19.253 MyApp[6839:3411127] File Transfer Finished with response code 200 2016-05-16 13:49:19.253 MyApp[6839:3411127] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success 2016-05-16 13:49:19.695 MyApp[6839:3411093] 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. 2016-05-16 13:49:19.705 MyApp[6839:3411093] GA: started UA-62595537-1 2016-05-16 13:49:19.705 MyApp[6839:3411093] user get from api 2016-05-16 13:49:19.708 MyApp[6839:3411093] user get from api 2016-05-16 13:49:19.854 MyApp[6839:3411093] 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 2016-05-16 13:49:19.855 MyApp[6839:3411093] GA: track view Home 2016-05-16 13:49:21.421 MyApp[6839:3411093] GA: user id set 71313952-01e4-4c82-8e0d-d1a600931712 2016-05-16 13:49:21.422 MyApp[6839:3411093] auto starting 2016-05-16 13:49:21.422 MyApp[6839:3411093] bgGeo installed 2016-05-16 13:49:21.446 MyApp[6839:3411093] WARN: Can't register device for push notifications 2016-05-16 13:49:21.446 MyApp[6839:3411093] WARN: Can't register device for push notifications 2016-05-16 13:49:21.463 MyApp[6839:3411093] State check, current state [object Object] 2016-05-16 13:49:21.480 MyApp[6839:3411093] - BackgroundGeolocation requires requestAlwaysAuthorization! 2016-05-16 13:49:21.492 MyApp[6839:3411093] THREAD WARNING: ['BackgroundGeolocation'] took '29.510010' ms. Plugin should use a background thread. 2016-05-16 13:49:21.493 MyApp[6839:3411093] bgGeo configured 2016-05-16 13:49:21.508 MyApp[6839:3411093] THREAD WARNING: ['BackgroundGeolocation'] took '15.433838' ms. Plugin should use a background thread. 2016-05-16 13:49:21.543 MyApp[6839:3411093] bgGeo started 2016-05-16 13:49:22.721 MyApp[6839:3411093] goo! [object Object] 7 2016-05-16 13:49:24.916 MyApp[6839:3411093] WARN: Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219543871

Chris Scott Transistor Software http://www.transistorsoft.com

dgobaud commented 8 years ago

1.0.1

just tried in simulator - it works in simulator but not on device....

christocracy commented 8 years ago

upgrade to latest version

On Mon, May 16, 2016 at 10:08 PM, David Gobaud notifications@github.com wrote:

1.0.1

just tried in simulator - it works in simulator but not on device....

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219548541

Chris Scott Transistor Software http://www.transistorsoft.com

christocracy commented 8 years ago

which is 1.5.1

You're way behind! this version has been quite stable and the plugin has much improved logging.

On Mon, May 16, 2016 at 10:09 PM, Chris Scott christocracy@gmail.com wrote:

upgrade to latest version

On Mon, May 16, 2016 at 10:08 PM, David Gobaud notifications@github.com wrote:

1.0.1

just tried in simulator - it works in simulator but not on device....

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219548541

Chris Scott Transistor Software http://www.transistorsoft.com

Chris Scott Transistor Software http://www.transistorsoft.com

dgobaud commented 8 years ago

Upgraded - same thing - works in simulator. Does not work on device.... but now no error. I guess broken device...?

2016-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 2016-05-16 14:53:17.729 MyApp[6907:3433491] Apache Cordova native platform version 4.1.1 is starting. 2016-05-16 14:53:17.730 MyApp[6907:3433491] Multi-tasking -> Device: YES, App: YES 2016-05-16 14:53:17.767 MyApp[6907:3433491] Using UIWebView 2016-05-16 14:53:17.768 MyApp[6907:3433491] [CDVTimer][handleopenurl] 0.065029ms 2016-05-16 14:53:17.770 MyApp[6907:3433491] Unlimited access to network resources 2016-05-16 14:53:17.770 MyApp[6907:3433491] Unlimited access to network resources 2016-05-16 14:53:17.770 MyApp[6907:3433491] [CDVTimer][intentandnavigationfilter] 1.385987ms 2016-05-16 14:53:17.770 MyApp[6907:3433491] [CDVTimer][gesturehandler] 0.107050ms 2016-05-16 14:53:17.786 MyApp[6907:3433491] [CDVTimer][file] 15.816033ms 2016-05-16 14:53:17.797 MyApp[6907:3433491] [CDVTimer][splashscreen] 10.747015ms 2016-05-16 14:53:17.805 MyApp[6907:3433491] [CDVTimer][statusbar] 8.148015ms 2016-05-16 14:53:17.806 MyApp[6907:3433491] [CDVTimer][keyboard] 0.714004ms 2016-05-16 14:53:17.823 MyApp[6907:3433491] [CDVTimer][socialsharing] 16.934037ms 2016-05-16 14:53:17.823 MyApp[6907:3433491] [CDVTimer][TotalPluginStartup] 54.996014ms 2016-05-16 14:53:17.875 MyApp[6907:3433491] createNotificationChecker 2016-05-16 14:53:17.875 MyApp[6907:3433491] not coldstart 2016-05-16 14:53:17.876 MyApp[6907:3433491] active 2016-05-16 14:53:17.876 MyApp[6907:3433491] PushPlugin skip clear badge 2016-05-16 14:53:18.158 MyApp[6907:3433491] Resetting plugins due to page load. 2016-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 2016-05-16 14:53:18.335 MyApp[6907:3433491] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file... 2016-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 2016-05-16 14:53:18.463 MyApp[6907:3433627] File Transfer Finished with response code 200 2016-05-16 14:53:18.463 MyApp[6907:3433627] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success 2016-05-16 14:53:18.478 MyApp[6907:3433491] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file... 2016-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 2016-05-16 14:53:18.688 MyApp[6907:3433647] File Transfer Finished with response code 200 2016-05-16 14:53:18.689 MyApp[6907:3433647] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success 2016-05-16 14:53:18.839 MyApp[6907:3433491] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file... 2016-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 2016-05-16 14:53:18.871 MyApp[6907:3433629] File Transfer Finished with response code 200 2016-05-16 14:53:18.871 MyApp[6907:3433629] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success 2016-05-16 14:53:18.890 MyApp[6907:3433491] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file... 2016-05-16 14:53:18.893 MyApp[6907:3433491] -[CDVFileTransfer download:] [Line 417] File Transfer downloading file... 2016-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 2016-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 2016-05-16 14:53:19.212 MyApp[6907:3433658] File Transfer Finished with response code 200 2016-05-16 14:53:19.213 MyApp[6907:3433658] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success 2016-05-16 14:53:19.342 MyApp[6907:3433658] File Transfer Finished with response code 200 2016-05-16 14:53:19.343 MyApp[6907:3433658] -[CDVFileTransferDelegate connectionDidFinishLoading:] [Line 621] File Transfer Download success 2016-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. 2016-05-16 14:53:19.734 MyApp[6907:3433491] GA: started UA-62595537-1 2016-05-16 14:53:19.734 MyApp[6907:3433491] user get from api 2016-05-16 14:53:19.734 MyApp[6907:3433491] login error 2016-05-16 14:53:19.736 MyApp[6907:3433491] user get from api 2016-05-16 14:53:19.736 MyApp[6907:3433491] user get from api 2016-05-16 14:53:19.737 MyApp[6907:3433491] GA: track view Splash 0 2016-05-16 14:53:19.737 MyApp[6907:3433491] ERROR: {"data":{},"status":401,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"params":{"authkey":null},"headers":{"Accept":"application/json, text/plain, /_"},"url":"https://www.startMyApp.com/api/v2/users/vehicles"},"statusText":"Unauthorized"} 2016-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 2016-05-16 14:53:20.208 MyApp[6907:3433491] GA: track view Home 2016-05-16 14:53:25.171 MyApp[6907:3433491] GA: track view Splash 1 2016-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 2016-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 2016-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 2016-05-16 14:53:31.987 MyApp[6907:3433491] GA: track event Login success
2016-05-16 14:53:32.685 MyApp[6907:3433491] GA: started UA-62595537-1 2016-05-16 14:53:32.685 MyApp[6907:3433491] user get from api 2016-05-16 14:53:32.685 MyApp[6907:3433491] user get from api 2016-05-16 14:53:32.803 MyApp[6907:3433491] GA: track view Home 2016-05-16 14:53:33.578 MyApp[6907:3433491] GA: user id set 71313952-01e4-4c82-8e0d-d1a600931712 2016-05-16 14:53:33.578 MyApp[6907:3433491] WARN: Can't register device for push notifications 2016-05-16 14:53:33.578 MyApp[6907:3433491] WARN: Can't register device for push notifications 2016-05-16 14:53:58.863 MyApp[6907:3433491] already had user 2016-05-16 14:54:11.739 MyApp[6907:3433491] user get from api 2016-05-16 14:54:11.739 MyApp[6907:3433491] Starting GeoLocationTracking for Filler 2016-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. 2016-05-16 14:54:11.743 MyApp[6907:3433491] ╔═════════════════════════════════════════════════ 2016-05-16 14:54:11.744 MyApp[6907:3433491] ║TSLocationManager ► SQLite init 2016-05-16 14:54:11.744 MyApp[6907:3433491] ╠═════════════════════════════════════════════════ 2016-05-16 14:54:11.748 MyApp[6907:3433491] ✓ Opened database 2016-05-16 14:54:11.748 MyApp[6907:3433491] ✓ Opened database 2016-05-16 14:54:11.759 MyApp[6907:3433491] ✓ Created locations table 2016-05-16 14:54:11.760 MyApp[6907:3433491] ✓ Unlocked all records 2016-05-16 14:54:11.794 MyApp[6907:3433491] THREAD WARNING: ['BackgroundGeolocation'] took '25.536865' ms. Plugin should use a background thread. 2016-05-16 14:54:13.585 MyApp[6907:3433491] active 2016-05-16 14:54:13.585 MyApp[6907:3433491] PushPlugin skip clear badge

dgobaud commented 8 years ago

One note - from the device I get one location callback as soon as I turn it on... just not future ones.

dgobaud commented 8 years ago

On my phone in settings there is even the purple arrow next to Always showing it is using location.... the updates just don't get sent through it seems :(

christocracy commented 8 years ago

I don't see that location callback in the XCode logs. if you have a new log, show it.

On Mon, May 16, 2016 at 11:05 PM, David Gobaud notifications@github.com wrote:

One note - from the device I get one location callback... just not future ones.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/113#issuecomment-219562836

Chris Scott Transistor Software http://www.transistorsoft.com

christocracy commented 8 years ago

This is what my SampleApp looks like when it boots. In particular, I don't see this block in your last log:

2016-05-16 23:15:41.210 BG  Geo[11593:4255401]╔═════════════════════════════════════════════════
2016-05-16 23:15:41.210 BG Geo[11593:4255401] ║TSLocationManager ► Configure
2016-05-16 23:15:41.210 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:39.591 BG Geo[11593:4255401] Apache Cordova native platform version 4.1.1 is starting.
2016-05-16 23:15:39.592 BG Geo[11593:4255401] Multi-tasking -> Device: YES, App: YES
2016-05-16 23:15:39.629 BG Geo[11593:4255401] Using UIWebView
2016-05-16 23:15:39.630 BG Geo[11593:4255401] [CDVTimer][handleopenurl] 0.063002ms
2016-05-16 23:15:39.631 BG Geo[11593:4255401] Unlimited access to network resources
2016-05-16 23:15:39.631 BG Geo[11593:4255401] Unlimited access to network resources
2016-05-16 23:15:39.631 BG Geo[11593:4255401] [CDVTimer][intentandnavigationfilter] 1.123965ms
2016-05-16 23:15:39.632 BG Geo[11593:4255401] [CDVTimer][gesturehandler] 0.131011ms
2016-05-16 23:15:39.641 BG Geo[11593:4255401] [CDVTimer][splashscreen] 9.681046ms
2016-05-16 23:15:39.650 BG Geo[11593:4255401] [CDVTimer][statusbar] 8.869052ms
2016-05-16 23:15:39.651 BG Geo[11593:4255401] [CDVTimer][backgroundfetch] 0.464022ms
2016-05-16 23:15:39.651 BG Geo[11593:4255401] [CDVTimer][TotalPluginStartup] 20.953953ms
2016-05-16 23:15:39.656 BG Geo[11593:4255401] - CDVBackgroundFetch onFetch
2016-05-16 23:15:39.727 BG Geo[11593:4255401] Resetting plugins due to page load.
2016-05-16 23:15:41.145 BG Geo[11593:4255401] THREAD WARNING: ['StatusBar'] took '10.636719' ms. Plugin should use a background thread.
2016-05-16 23:15:41.147 BG Geo[11593:4255401] - CDVBackgroundFetch configure
2016-05-16 23:15:41.148 BG Geo[11593:4255401] - CDVBackgroundFetch onFetch
2016-05-16 23:15:41.149 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:41.150 BG Geo[11593:4255401] ║TSLocationManager ► Settings: initialize
2016-05-16 23:15:41.150 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:41.151 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:41.151 BG Geo[11593:4255401] ║TSLocationManager ► SQLite init
2016-05-16 23:15:41.152 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:41.154 BG Geo[11593:4255401] ✓ Opened database
2016-05-16 23:15:41.163 BG Geo[11593:4255401] ✓ Unlocked all records
2016-05-16 23:15:41.208 BG Geo[11593:4255401] ► Motion-detector: OFF
2016-05-16 23:15:41.209 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:41.210 BG Geo[11593:4255401] ║TSLocationManager ► Configure
2016-05-16 23:15:41.210 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:41.211 BG Geo[11593:4255401] ╟─ {
    activityRecognitionInterval = 10000;
    activityType = Other;
    autoSync = false;
    batchSync = false;
    debug = true;
    deferTime = 600000;
    desiredAccuracy = "-1";
    disableElasticity = false;
    distanceFilter = 50;
    fastestLocationUpdateInterval = 1000;
    forceReloadOnBoot = false;
    forceReloadOnGeofence = false;
    forceReloadOnHeartbeat = false;
    forceReloadOnLocationChange = false;
    forceReloadOnMotionChange = false;
    foregroundService = true;
    heartbeatInterval = 120;
    locationUpdateInterval = 5000;
    method = POST;
    minimumActivityRecognitionConfidence = 70;
    params =     {
        device =         {
            available = 1;
            cordova = "4.1.1";
            manufacturer = Apple;
            model = "iPhone8,1";
            platform = iOS;
            uuid = "07F0A017-8269-4816-855F-2A99F1064700";
            version = "9.3.1";
        };
    };
    pausesLocationUpdatesAutomatically = true;
    preventSuspend = false;
    startOnBoot = false;
    stationaryRadius = 20;
    stopDetectionDelay = 0;
    stopOnTerminate = false;
    stopTimeout = 1;
    triggerActivities = "in_vehicle, on_bicycle, running, walking, on_foot";
    url = "http://arthur.local:8080/locations";
    useSignificantChangesOnly = false;
}
2016-05-16 23:15:41.213 BG Geo[11593:4255401] ✓ Request location authorization: requestAlwaysAuthorization
2016-05-16 23:15:41.218 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:41.220 BG Geo[11593:4255401] ║TSLocationManager ► HttpService: initialize
2016-05-16 23:15:41.220 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:41.222 BG Geo[11593:4255401] ✓ Booted in background
2016-05-16 23:15:41.229 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:41.234 BG Geo[11593:4255401] ║TSLocationManager ► start!
2016-05-16 23:15:41.236 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:41.336 BG Geo[11593:4255401] ► MotionActivity Detector initiated
2016-05-16 23:15:41.338 BG Geo[11593:4255401] ✓ Enabled M7 MotionActivity updates
2016-05-16 23:15:41.351 BG Geo[11593:4255401] ► BackgroundFetch: ON
2016-05-16 23:15:41.352 BG Geo[11593:4255401] ► setPace 0
2016-05-16 23:15:41.353 BG Geo[11593:4255401] ► Motion-detector: OFF
2016-05-16 23:15:41.354 BG Geo[11593:4255401] ► Location-services: ON
2016-05-16 23:15:41.389 BG Geo[11593:4255401] THREAD WARNING: ['BackgroundGeolocation'] took '209.033936' ms. Plugin should use a background thread.
2016-05-16 23:15:41.393 BG Geo[11593:4255401] ► didChangeAuthorizationStatus 3
2016-05-16 23:15:41.412 BG Geo[11593:4255401] ► [Auxillary]LocationManager didChangeAuthorizationStatus: 3
2016-05-16 23:15:41.436 BG Geo[11593:4255401] ► [Auxillary]LocationManager didChangeAuthorizationStatus: 3
2016-05-16 23:15:41.438 BG Geo[11593:4255401] 

<+51.60232198,-3.34060834> +/- 65.00m (speed -1.00 mps / course -1.00) @ 5/16/16, 10:16:09 PM British Summer Time
2016-05-16 23:15:41.438 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:41.439 BG Geo[11593:4255401] ║TSLocationManager ► didUpdateLocation
2016-05-16 23:15:41.439 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:41.440 BG Geo[11593:4255401] ╟─ enabled: 1
2016-05-16 23:15:41.440 BG Geo[11593:4255401] ╟─ isMoving: 0
2016-05-16 23:15:41.440 BG Geo[11593:4255401] ╟─ distanceFilter: -1.0
2016-05-16 23:15:41.441 BG Geo[11593:4255401] Acquiring stationary location (1 / 5)
2016-05-16 23:15:41.460 BG Geo[11593:4255429] ► createBackgroundTask: 2
2016-05-16 23:15:41.546 BG Geo[11593:4255401] 

<+51.60237970,-3.34061832> +/- 10.00m (speed 0.00 mps / course -1.00) @ 5/16/16, 11:15:41 PM British Summer Time
2016-05-16 23:15:41.547 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:41.547 BG Geo[11593:4255401] ║TSLocationManager ► didUpdateLocation
2016-05-16 23:15:41.548 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:41.548 BG Geo[11593:4255401] ╟─ enabled: 1
2016-05-16 23:15:41.548 BG Geo[11593:4255401] ╟─ isMoving: 0
2016-05-16 23:15:41.549 BG Geo[11593:4255401] ╟─ distanceFilter: -1.0
2016-05-16 23:15:41.563 BG Geo[11593:4255401] ► createBackgroundTask: 3
2016-05-16 23:15:41.565 BG Geo[11593:4255449] ► createBackgroundTask: 4
2016-05-16 23:15:41.566 BG Geo[11593:4255401] Delta d: 6.458554, df: 50.000000
2016-05-16 23:15:41.568 BG Geo[11593:4255401] 
<+51.60237970,-3.34061832> +/- 10.00m (speed 0.00 mps / course -1.00) @ 5/16/16, 11:15:41 PM British Summer Time
2016-05-16 23:15:41.568 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:41.569 BG Geo[11593:4255401] ║TSLocationManager ► Process Location
2016-05-16 23:15:41.569 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:41.569 BG Geo[11593:4255449] ✓ Increment odometer: 120284.5
2016-05-16 23:15:41.588 BG Geo[11593:4255401] ✓ create stationary geofence, radius: 20
2016-05-16 23:15:41.625 BG Geo[11593:4255449] ✓ INSERT: E2BCB0E5-4429-4AB5-8D0A-331D860A2400
2016-05-16 23:15:41.626 BG Geo[11593:4255449] ╔═════════════════════════════════════════════════
2016-05-16 23:15:41.629 BG Geo[11593:4255449] ║TSLocationManager ► HTTP
2016-05-16 23:15:41.629 BG Geo[11593:4255449] ╠═════════════════════════════════════════════════
2016-05-16 23:15:41.630 BG Geo[11593:4255449] ╟─ autoSync? 0
2016-05-16 23:15:41.630 BG Geo[11593:4255449] ╟─ Network available? 1
2016-05-16 23:15:41.622 BG Geo[11593:4255401] ► createBackgroundTask: 5
2016-05-16 23:15:41.630 BG Geo[11593:4255449] ╟─ Is already transmitting? 0
2016-05-16 23:15:41.632 BG Geo[11593:4255401] ► MotionActivity Detector initiated
2016-05-16 23:15:41.633 BG Geo[11593:4255401] ✓ Enabled M7 MotionActivity updates
2016-05-16 23:15:41.633 BG Geo[11593:4255401] ► Motion-detector: ON (accelerometer freq: 0.0, detection-interval: 1)
2016-05-16 23:15:41.646 BG Geo[11593:4255401] ► Location-services: OFF
2016-05-16 23:15:41.662 BG Geo[11593:4255401] Finished load of: file:///var/containers/Bundle/Application/E5021894-02DA-481C-943A-1007478A1AA3/BG%20Geo.app/www/index.html#/
2016-05-16 23:15:41.958 BG Geo[11593:4255401] [js] BackgroundFetch initiated
2016-05-16 23:15:41.958 BG Geo[11593:4255401] - CDVBackgroundFetch finish
2016-05-16 23:15:41.958 BG Geo[11593:4255401] - CDVBackgroundFetch stopBackgroundTask
2016-05-16 23:15:41.958 BG Geo[11593:4255401] [js] location:  {"coords":{"speed":-1,"longitude":-3.340608341554061,"latitude":51.6023219833737,"accuracy":65,"heading":-1,"altitude":75.97921752929688,"altitudeAccuracy":18.26443203439577},"is_heartbeat":false,"sample":true,"is_moving":false,"odometer":120278.0197166227,"uuid":"27329B39-0E38-4E2B-BF9D-9E0F666FA713","activity":{"type":"still","confidence":100},"battery":{"level":0.54,"is_charging":true},"timestamp":"2016-05-16T21:16:09.310Z"}
2016-05-16 23:15:41.959 BG Geo[11593:4255401] [js] onMotionChange:  false {"coords":{"speed":0,"longitude":-3.340618321675193,"latitude":51.60237969835438,"accuracy":10,"heading":-1,"altitude":72.35667419433594,"altitudeAccuracy":6},"is_heartbeat":false,"is_moving":false,"odometer":120278.0197166227,"uuid":"2A1CE063-8719-47E0-8FCE-36179AB4ECC1","activity":{"type":"still","confidence":100},"battery":{"level":0.54,"is_charging":true},"timestamp":"2016-05-16T22:15:41.361Z"}
2016-05-16 23:15:41.959 BG Geo[11593:4255401] [js] location:  {"coords":{"speed":0,"longitude":-3.340618321675193,"latitude":51.60237969835438,"accuracy":10,"heading":-1,"altitude":72.35667419433594,"altitudeAccuracy":6},"is_heartbeat":false,"is_moving":false,"odometer":120278.0197166227,"uuid":"C3B5E824-F708-45D9-AC21-98E058A705A8","activity":{"type":"still","confidence":100},"battery":{"level":0.54,"is_charging":true},"timestamp":"2016-05-16T22:15:41.361Z"}
2016-05-16 23:15:41.960 BG Geo[11593:4255401] ✓ stopBackgroundTask: 2 OF (
    3,
    4,
    5
)
2016-05-16 23:15:41.960 BG Geo[11593:4255401] ✓ stopBackgroundTask: 3 OF (
    4,
    5
)
2016-05-16 23:15:41.960 BG Geo[11593:4255401] ✓ stopBackgroundTask: 4 OF (
    5
)
2016-05-16 23:15:43.744 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:43.745 BG Geo[11593:4255401] ║TSLocationManager ► Motion detector
2016-05-16 23:15:43.745 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:43.746 BG Geo[11593:4255401] ╟─ Current activity: 1 (was: 0)
2016-05-16 23:15:43.746 BG Geo[11593:4255401] ╟─ Shakes: 0, vectorSum: 1.002245
2016-05-16 23:15:43.746 BG Geo[11593:4255401] ╟─ Elapsed: 2
2016-05-16 23:15:43.747 BG Geo[11593:4255401] ╟─ BG time remaining: 38
2016-05-16 23:15:44.752 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:44.753 BG Geo[11593:4255401] ║TSLocationManager ► Motion detector
2016-05-16 23:15:44.754 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:44.754 BG Geo[11593:4255401] ╟─ Current activity: 1 (was: 1)
2016-05-16 23:15:44.755 BG Geo[11593:4255401] ╟─ Shakes: 0, vectorSum: 1.002344
2016-05-16 23:15:44.755 BG Geo[11593:4255401] ╟─ Elapsed: 3
2016-05-16 23:15:44.755 BG Geo[11593:4255401] ╟─ BG time remaining: 37
2016-05-16 23:15:45.765 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:45.766 BG Geo[11593:4255401] ║TSLocationManager ► Motion detector
2016-05-16 23:15:45.766 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:45.766 BG Geo[11593:4255401] ╟─ Current activity: 1 (was: 1)
2016-05-16 23:15:45.766 BG Geo[11593:4255401] ╟─ Shakes: 0, vectorSum: 1.002407
2016-05-16 23:15:45.766 BG Geo[11593:4255401] ╟─ Elapsed: 4
2016-05-16 23:15:45.767 BG Geo[11593:4255401] ╟─ BG time remaining: 36
2016-05-16 23:15:46.741 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:46.743 BG Geo[11593:4255401] ║TSLocationManager ► Motion detector
2016-05-16 23:15:46.746 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:46.748 BG Geo[11593:4255401] ╟─ Current activity: 1 (was: 1)
2016-05-16 23:15:46.851 BG Geo[11593:4255401] ╟─ Shakes: 0, vectorSum: 1.002012
2016-05-16 23:15:46.854 BG Geo[11593:4255401] ╟─ Elapsed: 5
2016-05-16 23:15:46.854 BG Geo[11593:4255401] ╟─ BG time remaining: 35
2016-05-16 23:15:47.749 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:47.750 BG Geo[11593:4255401] ║TSLocationManager ► Motion detector
2016-05-16 23:15:47.750 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:47.752 BG Geo[11593:4255401] ╟─ Current activity: 1 (was: 1)
2016-05-16 23:15:47.752 BG Geo[11593:4255401] ╟─ Shakes: 0, vectorSum: 1.001134
2016-05-16 23:15:47.752 BG Geo[11593:4255401] ╟─ Elapsed: 6
2016-05-16 23:15:47.752 BG Geo[11593:4255401] ╟─ BG time remaining: 34
2016-05-16 23:15:49.746 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:49.746 BG Geo[11593:4255401] ║TSLocationManager ► Motion detector
2016-05-16 23:15:49.746 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:49.747 BG Geo[11593:4255401] ╟─ Current activity: 1 (was: 1)
2016-05-16 23:15:49.747 BG Geo[11593:4255401] ╟─ Shakes: 0, vectorSum: 0.999067
2016-05-16 23:15:49.747 BG Geo[11593:4255401] ╟─ Elapsed: 8
2016-05-16 23:15:49.747 BG Geo[11593:4255401] ╟─ BG time remaining: 32
2016-05-16 23:15:50.750 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:50.750 BG Geo[11593:4255401] ║TSLocationManager ► Motion detector
2016-05-16 23:15:50.751 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:50.751 BG Geo[11593:4255401] ╟─ Current activity: 1 (was: 1)
2016-05-16 23:15:50.751 BG Geo[11593:4255401] ╟─ Shakes: 0, vectorSum: 0.998903
2016-05-16 23:15:50.751 BG Geo[11593:4255401] ╟─ Elapsed: 9
2016-05-16 23:15:50.752 BG Geo[11593:4255401] ╟─ BG time remaining: 31
2016-05-16 23:15:51.742 BG Geo[11593:4255401] ╔═════════════════════════════════════════════════
2016-05-16 23:15:51.743 BG Geo[11593:4255401] ║TSLocationManager ► Motion detector
2016-05-16 23:15:51.743 BG Geo[11593:4255401] ╠═════════════════════════════════════════════════
2016-05-16 23:15:51.744 BG Geo[11593:4255401] ╟─ Current activity: 1 (was: 1)
2016-05-16 23:15:51.744 BG Geo[11593:4255401] ╟─ Shakes: 0, vectorSum: 0.998979
2016-05-16 23:15:51.744 BG Geo[11593:4255401] ╟─ Elapsed: 10
2016-05-16 23:15:51.745 BG Geo[11593:4255401] ╟─ BG time remaining: 30
2016-05-16 23:15:51.748 BG Geo[11593:4255401] ► Motion-detector: OFF
2016-05-16 23:15:51.751 BG Geo[11593:4255401] ► MotionActivity Detector: OFF
2016-05-16 23:15:51.752 BG Geo[11593:4255401] ✓ stopBackgroundTask: 5 OF (
)
dgobaud commented 8 years ago

It isn't outputting it for some reason... even though everything works in the simulator. There must be a bug...

christocracy commented 8 years ago

do you have debug: false??

dgobaud commented 8 years ago

Turns out yes debug was set to false in the config. Unbelievably I fixed it by restarting the phone. I went to drive somewhere and Waze couldn't get GPS either... I've never seen that before on an iPhone... I think everything was working even with the "BackgroundGeolocation requires requestAlwaysAuthorization!" error the problem was just the phone was in a messed up state.

dgobaud commented 8 years ago

I guess add restart phone to uninstall/reinstall app on the troubleshooting list...