Help please🙏The AppService stop sending httpRequests when i go to sleep (after waking up - too) #406
Replies: 5 comments
-
Beta Was this translation helpful? Give feedback.
-
Just in case - here is my modified code I’ve customized it to integrate with Telegram. I run a user bot at home that intercepts messages and updates my profile description with relevant data. It looks something like this: The rest of the implementation is based on the Anduin.SleepAgent.ClockApp project. |
Beta Was this translation helpful? Give feedback.
-
UPD: Might have found the source of the problem. Tonight I removed everything related to sleep (including its tracking) from the code and the application did not crash. Maybe that's it. I'll experiment for a few days and report back here |
Beta Was this translation helpful? Give feedback.
-
UPD: Decided to try again to add to the metrics - Sleep ( |
Beta Was this translation helpful? Give feedback.
-
UPD: Looks like a bug @MyoungXUE Found the source of the problem: Left the following set of metrics tonight: const metrics = {
recordTime: Math.floor(new Date().getTime() / 1000),
// user: getProfile(), I removed it because there is a lot of unnecessary information that I don't need.
// device: deviceInfo, removed because I don't need a lot of unnecessary information.
heartRateLast: heartRate.getLast(),
battery: battery.getCurrent(),
calorie: calorie.getCurrent(),
distance: distance.getCurrent(),
sleepInfo: sleep.getInfo(),
// sleepingStatus: sleep.getSleepingStatus(), in this place I commented it out, because yesterday AppService crashed with it
stands: stand.getCurrent(),
steps: step.getCurrent(),
stress: stress.getCurrent(),
isWearing: wear.getStatus(),
}; With this set of metrics - the service sent data even when I'm asleep |
Beta Was this translation helpful? Give feedback.
-
Hello,
I’m experiencing a issue when using the following project: Anduin.SleepAgent.ClockApp.
As soon as I fall asleep - the app stops sending metrics
I have it slightly modified, in app-service there is a bluetooth status check before httpRequest
Sleep Mode is not working. I have disabled battery optimizations on my phone, but it didn’t help.
Smartphone: Samsung S24 FE
SmartWatch: Amazfit Balance (ZeppOS v.3.25.5.5)
If anyone knows how this can be solved, it would be appreciated🙏
Beta Was this translation helpful? Give feedback.
All reactions