1 of 1 people found this helpful
GPS simulation is not supported at this moment.
Workaround may be set RhoTimer and call callback method form there with some fake data
Bummer. If I push to my device the logic flow is different and dumps me to an "undefined" text output.
In the simulator I am basically hitting the code logic that sets a default lat/long (our HQ location) if gps is coming back unknown and the app works fine.
Guess I need to come up with some creative debugging solutions. Unfortunately PUTS and the other debugging output techniques don't seem to be working the way I expect. I can't seem to get ANY sort of logging output other than the built-ins. My in-app logging is going to the bit bucket or some other undisclosed file location. :/
If you use rhosimulator log should be in rhosimulator folder and in RhoStudio output console
Also check MinSeverity in rhoconfig.txt:
MinSeverity = 1
I tried MinSeverity = 0 even, no luck.
I see updated log info in the rhosimulator log file (lots of it), but I can never get either of these 2 lines with the asterisk to show up:
puts "************* STORELOCATIONS **************"
app_info "*** STORE LOCATIONS ***"
# check if we know our position
# wait till GPS receiver acquire position
GeoLocation.set_notification( url_for(:action => :geo_callback), "")
redirect url_for(:action => :wait)
# show position
I know the function is called (changing the navigate to wait screen will pull up another screen).
I can't seem to get logging to spit out any of my custom "tracing" output.