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 efe5523 commit 3a79749
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@
| `𝙲𝙾𝙽𝚃𝙴𝙽𝚃𝚂` |
| ---------- |
| [`Creating a simple foreground service`](https://github.com/devrath/android-foreground-service/wiki/Creating-a-simple-foreground-service) |
| [`Demo`]() |
| [`Starting service from background`](https://github.com/devrath/android-foreground-service?tab=readme-ov-file#starting-service-from-background) |

</div>

## `Demo`




### `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 3a79749

Please sign in to comment.