API for Position Update
ownCloud apps2 provides tools for ownCloud: system, productivity, etc.
Status: Beta
Brought to you by:
pf18387
Can you please add api support for updating position?
This makes it easier to develop an mobile app.
I have no experience with developing of android apps or iOS apps but today I played around with MIT appinventor.
If there is a simple api request to update position, it seems to be easy to develop an app for android with mit appinventor.
Hi micha_g,
Perhaps I'll give "MIT appinventor" a try, soon. But I prefer to look at Firefox-OS first.
I agree with you: it should be easy to develop an app because Geoloc is based upon XHR. The updating position uses only 3 different requests (1=Notify other people, 2=Update the current position, 3=Disconnect).
But, establishing a connection to the ownCloud engine is another story. As far as I understand, the ownCloud server provides 4 different access methods: User-interface, remote, public, and console.
Unfortunately, here we need to access an engine that is able to return error codes instead of (http/html)-like error messages.
Unless I'm wrong…
And what's about external api?
http://doc.owncloud.org/server/7.0/developer_manual/core/externalapi.html
That's the way like link sharing via owncloud app works.
I have a good book on Android development and have already read a few chapters. I have installed Android Studio and got my first Hello World app running.
I will try my best, but my Java skills are very low.
Thanks for the URI.
As far as I can see, this "external API" is based on a draft http://www.freedesktop.org/wiki/Specifications/open-collaboration-services-1.7/
This OCS (open collaboration service) draft also describes how to update a user's position http://www.freedesktop.org/wiki/Specifications/open-collaboration-services-1.7/#edit
Anyway, for the moment ocs/v1.php is based upon ../lib/base.php and this is the connection issue, because base.php is built as a server while we need an engine (or a more strong API).
I don't understand?
Same for me. That's why I prefer Firefox-OS. Why do you need android?
With link sharing I just wanted to give an example.
I'm usually just a user and not a programmer. I use Android. Maybe Firefox-OS is better, but I don't want to switch to that platform, just because there's a certain app.
I don't understand what's the problem with using the ocs/v1.php API. If the app justs posts the longitude and latitude every x seconds.
Or is the Problem the returning data of the api? Ok if there is an 100 byte download every position update, that's a problem. The advantage of the api is the simpler authentication. Maybe there is a way to set the api just returning data if it's not successful?
So do I.
Firefox-OS is an app available from the google play-store. FxOS is a browser, furthermore it allows you to write (android, iOS, etc.) apps with html+css+javascript - java is just unnecessary.
The key idea is to use Geoloc with a few FxOS "manifest" files.
For the moment, this API doesn't seem to work (see the thread here)
http://mailman.owncloud.org/pipermail/devel/2014-August/000540.html
But, more important, this API is supposed to give the response to the feature you asked for
Unless if I didn't understand the question?
Ok, now I understand.
And you have written a Firefox OS App?
I can not find it in the firefox marketplace.
This question is quite different from the first one…
Well. The last version of Geoloc contains 2 manifest files for FxOS
see https://sourceforge.net/p/oc-apps2/code-0/HEAD/tree/geoloc/trunk/
For the moment we can't use both at the same time (see above, this is because we need a stronger API / protocol in order to write a true FxOS-webapp - due to "lib/base.php" doesn't work like an engine but acts like a server - here, "engine" means a program communicating with another program, and "server" means a program exchanging with an human being)
The goal is not to use a market place, but to use our own server (our ownCloud place)