On Samsung galaxy watch using Health sensor data SDK, When I try to register for PPG_ON_DEMAND, PPG_CONTINUOUS sensor, get below exception:
java.lang.IllegalArgumentException: Invalid HealthTrackerType
at com.samsung.android.service.health.tracking.HealthTrackingService.getHealthTracker(SourceFile:14)
Hello, Are you partner of Samsung health sensor SDK?
Thanks Shamima
Make sure you use the correct overload of the getHealthTracker() function. For the PPG tracker, you need to provide a set of PpgType enum values that describe which PPG values you want to track.
healthTrackingService.getHealthTracker( HealthTrackerType.PPG_CONTINUOUS, setOf(PpgType.RED, PpgType.GREEN, PpgType.IR) )