@sunbiz I had submitted an MR for the app usage tracker in the trainer app. Please have a look at that I had implemented the logic and idea discussed above ( use of user data store, the threshold limit for app usage, storing usage locally and resetting them when synced with dhis2, etc.) Currently, the threshold limit for page visits is 10 and for page, time spent 10 minutes.
I had removed Fabric usage from the app. Committed here.
I had merged the latest changes to our previous MR * ## !195 . Now it is even with master and can be merged.
I had removed hardcoded credentials from the whole app and set it up with getPasswrordFromSecure(). Actually, I am reading our codebase for the login part and secure storage therefore got a little bit late in solving the merge conflict. Now I am clear with our idea of secure storage and login part.
We need to add some changes in the tracker app as well for the login part. The login credentials are not sent currently through intent from the tracker app. I will send an MR there too for that.