Closed GCorbel closed 9 years ago
Thanks for the very fast anwser (just a minute). It seems to be better but I have the result {:error=>3}
. It is probably not related to BubbleWrap.
We've been having some issues with location and i'm going to be working on fixing them soon. but for now can you try pointing your project at @cognitiveflux's branch?
gem 'bubble-wrap', github: 'cognitiveflux/BubbleWrap', branch: 'Fix_Location_KCLErrorLocationUnknown_restart'
And let me know if that fixes the error?
Also, note that the ios simulator is picky about locations... sometimes you have to turn the location OFF, then back on again in the simulator's debug menu or you'll get an error.
No, I didn't solve the bug.
It works now. I don't really now what I did.
I tried to do
BW::Location.get.startUpdatingLocation
BW::Location.get.stopUpdatingLocation
And I changed the position in the Simulator settings. It strange because I tried this before without success. Now, it works.
Thanks for your fast help !
Yeah, changing the position sometimes will reset the location's internals.... Apple really needs to fix this.
Glad you got it working!
Was it with the fork i told you to try or with the main bubblewrap repos?
Yes, it works with the master branch. I rebooted the mac to be sure... And I already try to change the position in the emulator. It's stange...
Thanks again.
In app_delegator.rb, I just copied and pasted the example code for location :
I added bubble-wrap to the Gemfile and I required
bubble-wrap/location
.It just do nothing. When I do
BW::Location.enabled?
it returns true.Did I miss something?