I have downloaded and started playing a little bit with the last OpnMRS Android Client (release v2.8.0). I logged in in the demo server and then I think I am missing something around, because I am finding many “issues”.
Just entering the app I see a toast saying “Failed to fetch visit type”.
Apart from this error, everything seems to work properly. So I register a patient, synchronization ok. I start a visit but then I can’t enter any forms.
Also when I go to settings page, a warning appears saying that I should download concepts, but then I try to download them and the app crashes.
I’m getting the errors in my device (API level 27) and in a virtual device (Pixel 2 API 28). I also get the errors when connecting to the demo server and my own server.
This is the Logcat output for the download concepts error
2019-10-21 18:23:38.390 22438-22438/org.openmrs.mobile E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.openmrs.mobile, PID: 22438
android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x42 color=0x00000000 number=0 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1916)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:7025)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
For the Failed to Fetch visit type error, I see this ouput (although I think it does have nothing to do with the error…)
Hi @jamessmith , yes it is a bug, do file it in our issue tracker . The description you mentioned looks good already, so just copy it when filing a new issue.
Note that the app doesn’t have a feature where it uses the visit types yet.