-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Bugfix Start Foreground Service When App In Foreground #13065
Bugfix Start Foreground Service When App In Foreground #13065
Conversation
Instead of writing own lifecycle, can't we re-use the Android one? android/app/src/main/java/com/owncloud/android/ui/activity/SyncedFoldersActivity.kt Line 826 in 8bb1eaa
|
Then we need to add this dependency "androidx.lifecycle:lifecycle-service:2.8.1" to access lifecycle from service. PR is updated. |
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
50e398f
to
99ec983
Compare
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/13065.apk |
/backport to stable-3.29 |
What does this PR?
Only starts foreground service when app in foreground so we don't came across background crashes anymore
No need to do it for FOREGROUND_SERVICE_MEDIA_PLAYBACK because Media Playback not causing that issue