79770415

Date: 2025-09-20 16:18:57
Score: 1.5
Natty:
Report link

As @tyczj commented to use "health", this was it. On Android 13/14 you need to run Activity Recognition in a Health FGS. Two tweaks fixed it:

<uses-permission android:name="android.permission.FOREGROUND_SERVICE_HEALTH" />

<service
    android:name=".BackgroundDetectedActivitiesService"
    android:exported="false"
    android:foregroundServiceType="health" />

Also make sure:

After that, updates started flowing.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @tyczj
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Devesh Singh