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

Foreground service behavior fixed #431

Merged
merged 2 commits into from
Jan 19, 2024
Merged

Conversation

philips77
Copy link
Member

This PR fixes the following issues:

  • when restarted with EXTRA_FOREGROUND_SERVICE flag set to true, the service will be started using startForegroundService(Intent) instead of startService(Intent)
  • when startForeground(int, Notification) crashes due to security exception (app is in background and the service cannot be started in foreground) the error is logged and ignored. As DFU is not very long task, the app update should succeed nevertheless.

@philips77 philips77 merged commit 6cd8d1d into main Jan 19, 2024
1 check passed
@philips77 philips77 deleted the bugfix/foreground-service branch January 19, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant