-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error - BackgroundGeolocation requires requestAlwaysAuthorization! #113
Comments
What does your app show in privacy-location services? On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:
Snet form Gmail Mobile |
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. |
Are you using cordova-plugin-Geolocation as well? On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:
Snet form Gmail Mobile |
no |
And is the plugin tracking? On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:
Snet form Gmail Mobile |
No i'm not getting location updates |
Delete app from device, reinstall. On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:
Snet form Gmail Mobile |
Have done that about 10 times along with clean iOS builds and resetting all plugins with ionic state reset... |
Show me screenshot of your .plist On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:
Snet form Gmail Mobile |
It's not a problem with the plugin, more likely something in your 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 On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:
Snet form Gmail Mobile |
There isn't any specific setting I need to add in the plist or xcode project right...? |
You have both WhenInUse and AlwaysDescription defined and WhenInUse is On Monday, May 16, 2016, Chris Scott christocracy@gmail.com wrote:
Snet form Gmail Mobile |
Didn't fix it :( |
did clean and rebuild - same problem. It gives the right prompt and has the right access in settings... |
How much experience do you have with my plugin? On Monday, May 16, 2016, David Gobaud notifications@github.com wrote:
Snet form Gmail Mobile |
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:
Snet form Gmail Mobile |
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. |
What version are you using? This looks super old. On Mon, May 16, 2016 at 9:51 PM, David Gobaud notifications@github.com
Chris Scott |
1.0.1 just tried in simulator - it works in simulator but not on device.... |
upgrade to latest version On Mon, May 16, 2016 at 10:08 PM, David Gobaud notifications@github.com
Chris Scott |
which is 1.5.1 You're way behind! this version has been quite stable and the plugin has On Mon, May 16, 2016 at 10:09 PM, Chris Scott christocracy@gmail.com
Chris Scott |
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 |
One note - from the device I get one location callback as soon as I turn it on... just not future ones. |
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 :( |
I don't see that location callback in the XCode logs. if you have a new On Mon, May 16, 2016 at 11:05 PM, David Gobaud notifications@github.com
Chris Scott |
This is what my SampleApp looks like when it boots. In particular, I don't see this block in your last log:
|
It isn't outputting it for some reason... even though everything works in the simulator. There must be a bug... |
do you have |
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. |
I guess add restart phone to uninstall/reinstall app on the troubleshooting list... |
Hi, We're getting the below error in the console
Any ideas?
Thank you!
The text was updated successfully, but these errors were encountered: