Author Topic: TimeTracker for Android  (Read 11458 times)

vat78

  • Freshman
  • *
  • Posts: 22
    • View Profile
TimeTracker for Android
« on: February 08, 2016, 09:00:29 am »
Hi!
I use FengOffice since 2013. And I like timeslots functionality. I use them for billing my projects and for saving common info about steps in tasks.
But use this functionality very uncomfortable if you are out of office. Esspecialy if you are using only community version.
That's why I decide to make android applicaton for work with FengOffice timeslots.

I am not a professional programmer. Please don't kick me if some my solutions are wrong. But the first problem that I have met was underdone API of FengOffice. So I had to write my version of API - vatapi plugin. If you want to test my application you'll need first to instal this plugin (see it in attachment).

Now I start alfa-testing of my application. And I open this topic for questions and errors about it.
https://play.google.com/store/apps/details?id=ru.vat78.fotimetracker
« Last Edit: February 08, 2016, 09:55:20 am by vat78 »

steveg

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: TimeTracker for Android
« Reply #1 on: February 09, 2016, 01:10:34 pm »
Looks promising.  I can't login from the Android app, but I have not had time to really troubleshoot this issue yet, so likely it's just something I need to do.


vat78

  • Freshman
  • *
  • Posts: 22
    • View Profile
Re: TimeTracker for Android
« Reply #2 on: February 10, 2016, 02:49:16 am »
Check that you have installed plugin "vatapi" on your server.
For checking you should enter in brouser adress:  <your web-server url>/index.php?c=api&m=active_plugin&plugin=vatapi
And you must get "{"plugin_state":1}" as a result

If result is different you need download plugin from attachment of this topic, unpack it to the plugin folder on your server and activate it by web interface (settings -> plugins).
Installing of plugins is described on http://wiki.fengoffice.com/doku.php/plugins

steveg

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: TimeTracker for Android
« Reply #3 on: February 10, 2016, 01:36:57 pm »
Ahh - I see what happened.    I installed, but did not activate the plugin!    So, it's attempting to connecting, but the android app just spins and then timesout - goes back to login screen...

Will explore logs later.

vat78

  • Freshman
  • *
  • Posts: 22
    • View Profile
Re: TimeTracker for Android
« Reply #4 on: February 11, 2016, 04:34:23 am »
Is there any message on screen after return to login form?

At first login It makes full load data from web. It includes such reqests:
1. check plugin
<your web-server url>/index.php?c=api&m=active_plugin&plugin=vatapi
must return
{"plugin_state":1}

2. check credentials
<your web-server url>/index.php?c=api&m=login&username=<login>&password=<password>
must return:
{"token":"your token","username":"your login","user_id":,"company":"your company"}

3. load categories (using token from previouse step)
<your web-server url>/index.php?c=vatapi&m=list_members&srv=workspace&auth=<token>
must return a list of your workspaces

4. load tasks
<your web-server url>/index.php?c=vatapi&m=listing&srv=ProjectTasks&args={"status":"0"}&auth=<token>
must return a list of your active tasks

5. load timeslots
<your web-server url>/index.php?c=vatapi&m=listing&srv=Timeslots&auth=<token>
must return a list of your timeslots (may take some time on big database)

May you try this requests in browser? Does they work?
« Last Edit: February 11, 2016, 04:36:19 am by vat78 »

vat78

  • Freshman
  • *
  • Posts: 22
    • View Profile
Re: TimeTracker for Android
« Reply #5 on: February 11, 2016, 07:54:20 am »
additional comment - application uses https conection by default. If your server doesn't use SSL, you should enter url including "http://" in login form.

steveg

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: TimeTracker for Android
« Reply #6 on: February 15, 2016, 11:00:43 am »
Vat - this works now!  This is a pretty great little app - there are a few tweaks that I would do to make it easier to use for our usage, but I'll think about that and get back to you.

jax@a4group.pl

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: TimeTracker for Android
« Reply #7 on: March 08, 2016, 11:13:34 am »
Hi.

I'am trying to use your app but I have problem to login via mobile. There is no error only small gray circle without any text.

I have checked plugin and user privileges and it seems OK.

What version of FengOffice your app support. My is't a little old. 2.3.2.


I think your idea is grat.
« Last Edit: March 08, 2016, 11:17:38 am by jax@a4group.pl »

vat78

  • Freshman
  • *
  • Posts: 22
    • View Profile
Re: TimeTracker for Android
« Reply #8 on: March 09, 2016, 05:49:26 am »
I have tested it on FengOffice v.3.4
Possible this doesn't work with old versions.
You may try to check my API plugin by browser. I described main commands higher in post from 02/11

jax@a4group.pl

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: TimeTracker for Android
« Reply #9 on: March 09, 2016, 05:00:37 pm »
I have checked rest command and it doesn't work.

So I need to update.

Thanks for replay.