BIDMCDigitalPsychiatry / LAMP-platform

The LAMP Platform (issues and documentation).
https://docs.lamp.digital/
Other
13 stars 10 forks source link

Android watch app playstore update #732

Open sijitg opened 1 year ago

sijitg commented 1 year ago

Android wear app - Update Target SDK version to latest to meet play store submission criteria Replace Kotlin synthetics with View binding Fix the issues in Wear app Github actions workflow file

sijitg commented 1 year ago

Libraries updated Kotlin synthetics replaced with view binding We are doing developer testing in a Google Pixel Watch Wear OS version 3.5

sijitg commented 1 year ago

we uploaded watch build to Playstore internal for testing, but some old dependencies are throwing errors . We are checking it.

sijitg commented 1 year ago

@carsten we need to remove Aware components also before pushing the build to playstore. Please confirm whether to proceed.

sijitg commented 1 year ago

We would like to discuss about this task in this week's meeting and proceed from there.

sijitg commented 1 year ago

We started working on this. Based on the last discussion we will include necessary permission popup and submit to play store with Aware components.

sijitg commented 1 year ago

We submitted an internal test version to Play store . But after further testing we found Aware is throwing more errors due to compatibility issues with Android 11 . Following issue is blocking us. https://github.com/denzilferreira/aware-client/issues/303

sijitg commented 1 year ago

We checked to use existing Lamp SDK but effort is involved to replace Google Fit API with Health Services on Wear OS . https://developer.android.com/training/wearables/health-services

@ertjlane

sijitg commented 1 year ago

Following is the current status of Android Watch app development. While testing we found that Aware framework is throwing errors due to Android 11 target version compatibility issues. We need to either wait for Aware framework developers to update the same or we can use Lamp's SDK which we are using in Mobile app. But to use Lamp SDK in watch app we need to write wrapper code for integrating Health Services for Wear OS. We would like to discuss this in meeting @ertjlane

carlan1 commented 1 year ago

If you were to remove aware components and instead use LAMP SDK, how will this impact sensor data collection for android wearables?

sijitg commented 1 year ago

If you were to remove aware components and instead use LAMP SDK, how will this impact sensor data collection for android wearables?

we need to write wrapper code for integrating Health Services for Wear OS, see below link.

https://developer.android.com/training/wearables/health-services

carlan1 commented 1 year ago

How will this affect lower level sensors like accelerometer, gps, etc?

sijitg commented 1 year ago

Health Services for Wear OS provides data types which include Steps, Distance, Elevation, Speed, Location data(Latitude, longitude and optionally, altitude and bearing at a specific point in time) etc. Please see below link for list of data https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType Android SensorManager API to be used for any other Data We have seen the following discussion which says "After using Wear Health Services , the accelerator sensor data cannot be sampled with the specified sample rate" which we need to confirm whether affect us also. https://github.com/android/health-samples/issues/9 @carlan1

carlan1 commented 1 year ago

Good to proceed

ZCOEngineer commented 1 year ago

Ok @carlan1

sijitg commented 1 year ago

We started working on this.

sijitg commented 1 year ago

Using Health services we are able to read data such as Heart beat and steps . Integration is in progress.

michaelmenon commented 1 year ago

@carlan1 Status update on Watch app update : We have removed Aware framework code and integrated Health services for Wear OS and we are able to collect data such as Heart rate , Location and send to server. After integrating remaining sensors we expect to send a test build by 06/16/2023, Friday

sijitg commented 1 year ago

@carlan1 Android watch app staging build is available for testing in Play store Internal track. It can be tested by opt- in to following URL. https://play.google.com/apps/internaltest/4698721810376871205

Please provide the google account using which you would like to test the app. We need to add these accounts in Testers list in Google play console so that you get invitation to test the app. Please note build submitted to internal test track are immediately made available for testing with out Google's approval process. Before submitting to production we need to do some more optimization.