Trying to get an clean geoloc implementation in some app; quite struggling with the limitations of what bubblewrap provide for locations
def get_location
begin
BW::Location.get_once do |location|
if location
self.latitude = location.latitude
self.longitude = location.longitude
end
end
rescue
puts "can't geoloc"
end
end
With this code (sorry bu I show the 'tests' that - i expect - would work as fallbacks with ruby code), I just get a plain app crash if i set the airplane mode on the phone
Thanks if any experiences on making it works in this mode