EyeSeeTea / malariapp

Android app to help with health center assessments (development repository)
GNU General Public License v3.0
6 stars 3 forks source link

Send server as user property to analytics #2463

Closed xurxodev closed 2 years ago

xurxodev commented 3 years ago

:pushpin: References

:gear: branches

app: Origin: feature/firebase_analytics_send_user_properties Target: v1.6_hnqis bugshaker-android: Origin: development_android_x
EyeSeeTea-SDK: Origin: feature/development SDK: Origin: feature-2.30_upgrade_gradle

:tophat: What is the goal?

Filter reports in firebase by the server (crashlytics and analytics)

:memo: How is it being implemented?

I have investigated crashlytics to filter by sent keys from the app. We have several options:

Captura de pantalla 2021-06-10 a las 17 16 21 Captura de pantalla 2021-06-10 a las 17 09 43

I have investigated analytics to filter by sent keys in crashlytics and this is not possible. We need to send new info from the app for analytics. I think the best option for us is to send a new server user property, then we can filter in the dashboard and for events using server user property.

Captura de pantalla 2021-06-11 a las 11 58 22 Captura de pantalla 2021-10-11 a las 9 23 40

important: in the firebase console is necessary to create a new custom dimension from the custom definitions menu in the sidebar. The new dimension must be to have as user property server. I have created it in debug firebase but we need to create it in production firebase.

:boom: How can it be tested?

Use case 1: should send server user property to the analytics

:floppy_disk: Requires DB migration?

:art: UI changes?