Closed jonmorehouse closed 10 years ago
Can you post the code you're using? I'm using the location wrapper in lots of my projects and don't have any issues.
Additionally, are you testing on a device or the simulator?
Hmm, it looks like I figured out at least part of the issue. I needed to go to simulator and grant access to location services. Once I did that I was able to successfully get the location data as neede
However, this still doesn't entirely solve my problem, as I'm trying to write a spec to make sure the code I'm writing works. How would I go about that?
If you uninstall and re-install your app, can you confirm that the location permission request popup appears? I just double-checked with our location sample and it worked for me
The way I'd suggest testing location is to use some sort of mock location manager, or mock methods on CLLocationManager
itself. Check out our location spec: https://github.com/rubymotion/BubbleWrap/blob/master/spec/motion/location/location_spec.rb
(the location manager is also stored as a module ivar, which could be another vector for testing)
Awesome, this is exactly what I need. I'll implement a mock location suite instead, once I know its working.
I'm new to BubbleWrap so excuse me if this is the expected action, but for some reason none of my return blocks are called when using the Location wrap. Am I missing something or is this a bug in my code or possibly the library?