ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.28k stars 110 forks source link

AGPS contribution #92

Open ernesst opened 7 years ago

ernesst commented 7 years ago

Enhancement (low priority)

Allow an UBphone using MLS to contribute to the service when GPS is used if user agree or could be an app development. In a area with low coverage, a user could contribute for his future use.

NeoTheThird commented 7 years ago

I agree, this would be a nice feature. This is the android equivalent: https://blog.mozilla.org/services/2014/11/03/mozilla-stumbler-1-0/

ernesst commented 7 years ago

It's also implemented in background in firefox for android

ernesst commented 6 years ago

Is there a chance to get GPS information in background ? We refurbished Activity tracker app which create gpx files. Currently it cannot get gps info if screen off... Otherwise this software could a base where we need to merge cell + wifi + gps info into a file to upload to Mozilla.

cyberpunkedu commented 5 years ago

Is there a chance to get GPS information in background ? We refurbished Activity tracker app which create gpx files. Currently it cannot get gps info if screen off... Otherwise this software could a base where we need to merge cell + wifi + gps info into a file to upload to Mozilla.

Ideally, I would suggest that one would be able to put the phone in airplane mode, but still turn on the GPS and get the information in the background.

ernesst commented 5 years ago

I've made a wrapper to collect the data and contribute : https://forums.ubports.com/topic/118/mozilla-locations-service-on-ubuntu-touch/7 https://framagit.org/ernesst/MLS-for-Utouch

It's capturing GPS + WIFI and upload the info to MLS server at the end.

I couldn't find a way to get Cell tower information, ofono script doesn't allow that on the phone. If you have any idea please let me know.

dobey commented 5 years ago

I couldn't find a way to get Cell tower information, ofono script doesn't allow that on the phone. If you have any idea please let me know.

There's some code in location-service already, to report data to mozilla location service. It would need some integration work and such to finish u, but we could probably use it instead.

ernesst commented 5 years ago

@dobey If you could give an hint where this piece of code is located it might help future developments.

dobey commented 5 years ago

@ernesst It's part of location-service code, though it's currently unused in production as it's incomplete. It would need appropriate settings integration, so that people can opt-in to the location reporting. It's C++ and a bit esoteric.