Open borismedved0 opened 1 year ago
I have the same issue
I've added logs to onCreate/onDestroy. Service starts but onUserActivityInfoReceived is not called
It was working fine as a Receiver in 1.0.0-alpha03, but in RC and in beta3 as a service it doesn't work
Having the same issues, using 'setPassiveListenerService' instead of setPassiveListenerServiceAsync worked for me
@ashishpat
Having the same issues, using 'setPassiveListenerService' instead of setPassiveListenerServiceAsync worked for me
setPassiveListenerService calls the same setPassiveListenerServiceAsync inside
@kotlin.jvm.Throws(HealthServicesException::class)
public suspend fun PassiveMonitoringClient.setPassiveListenerService(
service: Class<out PassiveListenerService>,
config: PassiveListenerConfig
) = setPassiveListenerServiceAsync(service, config).awaitWithException()
Hello, I have encountered an issue: I am not getting new user activity info in fun
onUserActivityInfoReceived(info: UserActivityInfo)
. To say that I do not receive at all is not entirely correct, I receive, but I receive this data immediately after I registered the service withsetPassiveListenerServiceAsync
and this data is outdated. Here's an log of UserActivityInfo I collected for a day:All the data here, these are the ones that I received immediately after registering the service. If you say that you shouldn’t register so often, then it’s fine, I have an interval in 11 hours when I didn't registered service, it's an interval 2 and 3, there is a period of time when I slept with the watch, and in theory, between these records, there should be other activities that say that I’m asleep, but as you can see there's nothing. And that's the problem, I want to track my sleep duration but I can't because I'm not getting activity changes :(
Code
Manifest.sml
Registered service here
PassiveDataService.kt
Environments:
Device: Fossil Gen 6 OS: Wear OS 3 Android SDK: 30 Lib version: 1.0.0-beta02
Notes:
Thank you in advance!