Data Capture for DHIS2 (Android) Refusing Connection on 2.30

android
(Dr. Ifeanyi Okoye) #1

Dear All
We use the android data capture for DHIS2 app at a number of our field sites. This is the aggregate data app not the new tracker one.

We have just recently upgraded to 2.30 and noticed that the app no longer connects to the server. It keeps saying “Try again”

We tried to connect to another instance running 2.29 and it connected.

Has anybody else experienced this and what did you do to resolve it?

2 Likes
(James Omutsani) #2

Hi @ifeanyiokoye,

Had you updated the URL on the android app before trying to connect to the 2.30 Instance?

Best,
James.

(Dr. Ifeanyi Okoye) #3

Yes @jomutsani

We have been using the app for over 2 years now. We tried on different networks but it just keeps saying try again.

Regards,

Ifeanyi

2 Likes
(Prosper) #4

Dear @ifeanyiokoye

The android Data capture is only supported on version 2.29 and below not 2.30 and above.

It may not work well with 2.30 and the new android app doesn’t have data capture yet. You will probably have to keep at 2.29 if you are using old android apps.

See more about the new android

Regards

2 Likes
(Dr. Ifeanyi Okoye) #5

Thank you @prosper for this information. This is interesting. On Google Play Store, it says that the app is compatible with 2.29 and 2.30.
That information needs to be corrected as soon as possible.

Thank you.

Regards,

Ifeanyi

1 Like
(James Omutsani) #6

Thanks for the update @prosper.

Best,
James.

(Dr. Ifeanyi Okoye) #7

@prosper Do you have an idea when aggregate data capture would be included in the Android app?

2 Likes
(Prosper) #8

Hi @ifeanyiokoye

Sorry for the delayed response, am copying in @marta to share on when the data capture will be added cant seem to see it on the roadmap.

https://www.dhis2.org/android-roadmap

Regards

2 Likes
(Marta Vila) #9

Hi @ifeanyiokoye, @prosper,

the old data capture supports 2.30 and will soon be released for 2.31.

Regarding the inlcusion of aggregates in the new app, we are currentkly working on it and it will be opened for beta testing next month. We will announced it through the mobile sub-community.

Best regards,
Marta

2 Likes
(Dr. Ifeanyi Okoye) #10

Thank you @marta and @prosper.

So, considering that we can connect to a 2.29 instance that uses a http connection but cannot connect to a 2.30 instance which uses a https connection, do you know if anybody else has experienced this kind of issue and how did resolved it?

We tried with the HISP TZ DHIS Touch and also could not connect. I reached out to @John_Francis_Mukulu who said there might be an issue with our certificate that is not allowing the connections on mobile but would not show up on the browser.

We are scouring the logs to see if we can find anything to give us a clue as to what is happening.

Thank you

2 Likes
Unable to login to DHIS2 Mobile Dashboard
(Marta Vila) #11

Hi @ifeanyiokoye,

we have found people not being able to conenct for two reasons:

  1. Tomcat not allowing the use of brackets in expressions from version 8.5 -> have a look at this post https://webmasters.stackexchange.com/questions/119129/dhis-2-web-request-gives-invalid-character-found-in-the-request-target-the-val

  2. The URL not including the complete path. Sometimes the URL used in web redirects you to the log in screen, but that does not mean it is the “server url” and can behave differently in Android. The app needs the whole path to where dhis is installed in your server.

    For example:
    In the browser, the URL https://myserver.org can take you to the log in screen which could look like this: https://myserver.org/dhis/dhis-web-commons/security/login.action

    In this case the app needs https://myserver.org/dhis to succesfully log in.

If none of this works, please share testing credentials in private message so that we can test with you.

Best,
Marta

3 Likes
Unable to login to DHIS2 Mobile Dashboard
(Dr. Ifeanyi Okoye) #12

Thank you @marta, we will investigate these.

2 Likes
(John Francis Mukulu) #13

Hello @ifeanyiokoye,
The helpful part is, when login fails, and DHIS2 touch brings informing that it failed because of SSL handshake, It means, your server setup has issues, either nginx or tomcat, depending on where you’ve set HTTPS and SSL configurations.

I have encountered a similar issue in the past, replacing SSL configurations with new ones by one way to resolve the problem or get new SSL certificate all together should put the problem to rest.

You can try to be sure with free SSL first, see https://letsencrypt.org/

2 Likes
(Dr. Ifeanyi Okoye) #14

Thank you everyone. Just to let you know that we have resolved this issue.

Your contributions were most helpful.

Thank you once again.

2 Likes
(Marta Vila) #15

That si great @ifeanyiokoye, thanks for sharing.

Would it be possible to know what was the problem?

thanks!

1 Like
(Dr. Ifeanyi Okoye) #16

@marta, It was a problem with the configuration of the SSL certificate as some folks had mentioned and we had our IT team check through again, and they resolved it.

Thank you once again.

2 Likes