Improve FetchPushForegroundService's reliability (#6757)
* Improve `FetchPushForegroundService`'s reliability - Don't use DI, we can just create the notification channel. This should speed up the creation of the service and reduce the number of `ForegroundServiceDidNotStartInTimeException` received. Also use `MainScope` instead of the app's coroutine scope. - Move the wakelock releasing mechanism to `onDestroy` so it's always used. Previously, this would only happen when `stopService` was called, which would only happen when `stopSelf()` is called, but not when the OS or the service manager stops the service. * Add fallback value for the notification channel title * Replace the wrong string for the notification/channel title --------- Co-authored-by: Benoit Marty <benoitm@element.io>
This commit is contained in:
parent
11476c73cf
commit
77b444581d
22 changed files with 60 additions and 62 deletions
|
|
@ -190,7 +190,6 @@
|
|||
<string name="common_advanced_settings">"고급 설정"</string>
|
||||
<string name="common_an_image">"이미지"</string>
|
||||
<string name="common_analytics">"통계"</string>
|
||||
<string name="common_android_fetching_notifications_title">"알림 동기화 중…"</string>
|
||||
<string name="common_android_shortcuts_remove_reason_left_room">"방을 떠남"</string>
|
||||
<string name="common_android_shortcuts_remove_reason_session_logged_out">"세션에서 로그아웃되었습니다."</string>
|
||||
<string name="common_appearance">"외관"</string>
|
||||
|
|
@ -234,6 +233,7 @@
|
|||
<string name="common_failed">"실패"</string>
|
||||
<string name="common_favourite">"즐겨찾기"</string>
|
||||
<string name="common_favourited">"즐겨찾기 됨"</string>
|
||||
<string name="common_fetching_notifications_title_android">"알림 동기화 중…"</string>
|
||||
<string name="common_file">"파일"</string>
|
||||
<string name="common_file_deleted">"파일 삭제됨"</string>
|
||||
<string name="common_file_saved">"파일 저장됨"</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue