nextcloud / nextcloud/android

`RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()`

Open
#13,798 0 comments 0 reactions 0 assignees View on GitHub
bug performance: misc stable-3.30
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### Cause of error
```java
Exception in thread "main" android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{651d803 u0 com.nextcloud.client/androidx.work.impl.foreground.SystemForegroundService}
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2540)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8668)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)

```

### App information
* ID: `com.nextcloud.client`
* Version: `30300151`
* Build flavor: `generic`

### Device information
* Brand: `HUAWEI`
* Device: `HWJNY`
* Model: `JNY-LX2`
* Id: `HUAWEIJNY-L22`
* Product: `JNY-LX2`

### Firmware
* SDK: `29`
* Release: `10`
* Incremental: `102.0.0.285C605`

Notes: all known battery optimizer app killers for this device model are disabled or uninstalled. `generic` here means F-Droid version. Human readable version: 3.30.1 RC1.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.