Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add foreground service types for Android 14 target #4561

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Aug 7, 2024

Summary

Adds information about the foreground service type as this is required when targeting Android 14 and will otherwise throw exceptions: https://developer.android.com/about/versions/14/changes/fgs-types-required.

WorkManager jobs that run in the foreground are handled by androidx.work.impl.foreground.SystemForegroundService. I'm using the following types:

  • dataSync for the sensor worker
  • remoteMessaging for the persistent websocket connection, as it handles notifications which is somewhat like messaging

Google also requires a lot of details about these services for the Play Store including videos demonstrating the feature, and has policy requirements, so this may need adjustment/discussion...

Screenshots

n/a

Link to pull request in Documentation repository

n/a

Any other notes

 - Adds information about the foreground service type as this is required when targeting Android 14 and will otherwise throw exceptions: https://developer.android.com/about/versions/14/changes/fgs-types-required
@dshokouhi dshokouhi merged commit e0e4293 into home-assistant:master Sep 6, 2024
4 checks passed
@jpelgrom jpelgrom deleted the android-14-fgs-type branch September 6, 2024 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants