Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
devrath committed Jan 5, 2024
1 parent d1dbb2c commit e6c073f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
| `𝙲𝙾𝙽𝚃𝙴𝙽𝚃𝚂` |
| ---------- |
| [`Creating a simple foreground service`](https://github.com/devrath/android-foreground-service/wiki/Creating-a-simple-foreground-service) |
| [`Starting service from background`](https://github.com/devrath/android-foreground-service/wiki/Creating-a-simple-foreground-service) |
| [`Starting service from background`](https://github.com/devrath/android-foreground-service?tab=readme-ov-file#starting-service-from-background) |

</div>

### `Starting service from background`
* Apps that target Android 12 or higher can't start foreground services while the app is running in the background, except for a few special cases.
* If an app tries to start a foreground service while the app runs in the background, and the foreground service doesn't satisfy one of the exceptional cases, the system throws a `ForegroundServiceStartNotAllowedException`.



Expand Down

0 comments on commit e6c073f

Please sign in to comment.