Skip to content

Remove Google Play Services dependency #88

Closed

Description

@arthurlutz

It would be nice to be able to install owntracks without using google play service and using the f-droid application : https://f-droid.org/

Activity

  1. jpmens commented on Feb 10, 2015

    @jpmens
    Member

    Closing as duplicate of #82

  2. arthurlutz commented on Feb 10, 2015

    @arthurlutz
    Author

    ok, sorry for the duplicate, I did do a search before submitting this issue and did not find #82

    Could I suggest a different use of the issue tracker where issues could be left open even when the main participants do not have time to work on them. Open issues that are welcomed by "core" team could be a invitation for others to contribute to the project.

  3. binarybucks commented on Feb 10, 2015

    @binarybucks

    All the open issues are essentially free to work on.
    I wecome every helping hand that I have ;)

  4. jpmens commented on Feb 10, 2015

    @jpmens
    Member

    @arthurlutz I will reopen now, and we're looking forward to your contributions. :-)

  5. reopened this on Feb 10, 2015
  6. binarybucks commented on Feb 10, 2015

    @binarybucks

    Jup, but instead of ripping out all the Play Services it would be nice if the whole thing would work with them in the first place ;)

  7. modified the milestone: on Feb 10, 2015
  8. binarybucks commented on Jun 9, 2015

    @binarybucks

    no longer on the roadmap.

  9. friesenkiwi commented on Jul 21, 2015

    @friesenkiwi
    Contributor

    Hi. I read about OwnTracks and MQTT a while ago and followed it since then because I'd love to set up my own server and use it with the app, also possibly contributing to the server or app. Now I wanted to try out he app but unfortunately can't install it. Because it needs Google Play Services. Which I don't understand. What for are they needed? :)

    I thought, the point at developing an OWNTracks client/server application which is open source was, because one wanted to track one's own position on an own server, sharing it only with people one decides on without depending on big corporations like Microsoft, Apple or Google, thus controlling one's own data?

    I actually can't install the app on my Samsung S4 Mini because i run CyanogenMod 11 M13 with no Google Services installed. :-(

    So ... for me it would be very desireable to have OwnTracks working wirhout the Play Services and being distributed via F-Droid. @binarybucks, you said, it's no longer on the roadmap. That's sad :-(. Is there any chance of putting it back on it? :-) Maybe if I'd contribute some code to remove the Google Play Services dependency?

  10. Pimmetje commented on Jul 21, 2015

    @Pimmetje

    I only used Google play services for push. I even installed the same app on a system without Google play. It worked with some small modifications. Now i have Google play services removed altogether in favor of a MQTT flavor.

  11. friesenkiwi commented on Jul 29, 2015

    @friesenkiwi
    Contributor

    Do you mean you have a version of OwnTracks without the Google Play Services? Or did you mean a completely different App?

    #84 has the same question to remove the dependency and it also has a suggestion to include https://github.com/mapzen/LOST as a replacement. I'd find that very appealing and would volunteer to do the coding on it, if it was of interest for OwnTracks. @jpmens, @binarybucks, what are your thoughts on that?
    I wouldn't want to "rip out" anything in the sense of destroying the functionality, but keep it and introduce the new quality of independence, open services and a larger community and target audience (e.g. those who are relying on the F-Droid catalog)

  12. binarybucks commented on Jul 29, 2015

    @binarybucks

    @Pimmetje OwnTracks doesn't use Google Play Services for push so I'm not sure what you did there. Could you provide some more detail on your modifications? If they're usefull, we could implement them as well.

    @friesenkiwi OwnTracks is open source and allows you to send your location to your own server, yes. The part were it gets the locations from is Google Play Services which are not open source, yes. I'm not sure why there is such hate agaist the Play Services (besides from developers, because the APIs change every few months). If you own an Android device or use Google Maps, Google most likely has your location anyway. If you can live without these services I envy you to be honest.

    I removed the item from the roadmap because at that point there wasn't any good alternative that I was aware of that didn't require rewriting the (barely working) location component.

    If LOST is really a drop in replacement that might even work better, I'm more than happy to test ad accept a pull request from you.

  13. 8 remaining items

  14. binarybucks commented on Aug 6, 2015

    @binarybucks

    I won't maintain a version that includes OSM and GMaps for the time beeing
    We could create a placeholder view hat says "you're using the Google free
    version of this app so this functionality is not available".
    This should be faily easy by adding a new Fragment in ActivityMain and
    showing that instead of the MapFragment. We can switch that out for a OSM
    Fragment anytime if we like.

    I'll have to think about a way to remove the BitmapDescriptorFactory first (226)

  15. friesenkiwi commented on Aug 6, 2015

    @friesenkiwi
    Contributor

    That sounds like a reasonable compromise :-)
    Is there any problem with BitmapDescriptorFactory apart from this? Because the only usage I see apart from the MapFragment is in Contact.getFaceDescriptor() and that is only called by the MapFragment, so it shouldn't be much of a problem.

  16. binarybucks commented on Aug 9, 2015

    @binarybucks

    You're right, it's not really a problem if we don't have a map anyways.
    One thing that came to my mind however: How restrictive is F-Droid? Is it enough that the app works when no Play Services are available but is linked against them anyways?

  17. friesenkiwi commented on Aug 9, 2015

    @friesenkiwi
    Contributor

    As far as I can see, they're fairly moderate. There is some documentation e.g. at https://f-droid.org/wiki/page/Inclusion_Policy and https://f-droid.org/wiki/page/Antifeatures.
    My interpretation is, that if the App is completely free, it can be included into the repository without problems. But if the app would rely completely on non-free services or dependencies, it might be flagged with "Anti-features". But this would be an act of human consideration, and in the case of OwnTracks, where the essential operation would be ensured also without the "dependency" (which is intended to be the case), i'd expect no flags.

  18. binarybucks commented on Aug 10, 2015

    @binarybucks

    Reading the comment by one of the F-Droid over at #82 this just leaves us with the option to run an own repository because I'm not going to maintain versions of Paho, Fabric and all the Google Support libraries.

    To be honest, I'm not sure if we can dedicate any resources (read time and money) to run a repository. At least for me Google Play is a perfectly acceptable software store.

  19. friesenkiwi commented on Aug 10, 2015

    @friesenkiwi
    Contributor

    I suggest to take one step at a time: First trying to replace the Google Play Services dependancy with LOST without breaking essential functionality or endager it's stability, maybe even increase the localisation quality (which I started and am willing to continue and hopefully eventually finish, also by implementing the Geofencing functionality over at LOST). This will enable the App to run on more devices.
    Afterwards, we may fathom the feasibility meeting F-Droid's requirements to include the App into it's repository without too much effort, introducing unnessecary overhead and reducing the maintainability (which are all valid reservations, in my opinion). On the other hand, that may widen the target audience for the app even more (those, who don't have a Google account, like myself...)
    Is that a valid approach for you? I would be very sad, if a port to LOST couldn't be included only because it is not clear upfront, whether F-Droid inclusion is feasibile or not. I'd consider it valuable in itself.

    @mvdan, you are referring to the external maven repositories

  20. binarybucks commented on Aug 10, 2015

    @binarybucks

    Continue with your work to add Geofences to LOST. If these work, we can
    compare accuracy and battery life against the Play Services.

    I'd like to keep the maven repositories for now. If you pull in LOST,
    please import it through Maven Central (or as .jar until your changes are
    merged).
    Paho also plans to be included in Maven Central but that might take some
    time but we shouldn't worry about the dependency problems.
    First we should see if it will work at all.

    On Mon, Aug 10, 2015 at 10:22 AM, friesenkiwi notifications@github.com
    wrote:

    I suggest to take one step at a time: First trying to replace the Google
    Play Services dependancy with LOST without breaking essential functionality
    or endager it's stability, maybe even increase the localisation quality
    (which I started and am willing to continue and hopefully eventually
    finish, also by implementing the Geofencing functionality over at LOST).
    This will enable the App to run on more devices.
    Afterwards, we may fathom the feasibility meeting F-Droid's requirements
    to include the App into it's repository without too much effort,
    introducing unnessecary overhead and reducing the maintainability (which
    are all valid reservations, in my opinion). On the other hand, that may
    widen the target audience for the app even more (those, who don't have a
    Google account, like myself...)
    Is that a valid approach for you? I would be very sad, if a port to LOST
    couldn't be included only because it is not clear upfront, whether F-Droid
    inclusion is feasibile or not. I'd consider it valuable in itself.

    @mvdan https://github.com/mvdan, you are referring to the external
    maven repositories

    —
    Reply to this email directly or view it on GitHub
    #88 (comment).

    Mit freundlichen Grüßen / With kind regards
    Alexander Rust

  21. binarybucks commented on Sep 17, 2015

    @binarybucks

    I've migrated the MapFragment from Google Maps to MapBox which is a map solution based on Openstreetmaps available on Maven Central.

    How are things on the LOST front regarding Geofencing?

  22. ThomasRgbg commented on Jan 3, 2016

    @ThomasRgbg

    Just as a little motivation, I would also like to use Owntracks, in case it works without Google Play Services. There are a lot of Android phones out without it (e.g. in China) and it would be great if you could support them.

  23. binarybucks commented on Jan 3, 2016

    @binarybucks

    Yes, but there currently isn't a way around using the Play Services and tbh I don't see that this will change in the future.

  24. jpmens commented on Feb 6, 2016

    @jpmens
    Member

    Current status is we cannot do without Play Services (particularly not in view of an optional premium feature we're adding for Hosted) and won't be able to in any foreseeable future.

  25. mbirth commented on Apr 20, 2018

    @mbirth

    Just for the record: There's the microG Framework which implements location services compatible to Google's API, but lets you select which backends to use for non-GPS-localisation.

  26. jpmens commented on Apr 2, 2020

    @jpmens
    Member

    @friesenkiwi hello, and long no hear. I believe we last spoke in Ludwigsburg. Would you be interested to talk to us again? Ping me at support@owntracks.org please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions