Skip to content

Commit 8491e08

Browse files
committed
Undo markdown typo fix.
Summary: See #10448. Confirmed link is rendered correctly. cc foghina Closes #10468 Differential Revision: D4047432 Pulled By: lacker fbshipit-source-id: dfa1427d6dcd7b2e5e66ce276cae1ed10778c4ff
1 parent c2b60dd commit 8491e08

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/HeadlessJSAndroid.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ public class MyTaskService extends FbHeadlessJsTaskService {
4949
}
5050
```
5151

52-
Now, whenever you [start your service](https://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent), e.g. as a periodic task or in response to some system event / broadcast, JS will spin up, run your task, then spin down.
52+
Now, whenever you [start your service][0], e.g. as a periodic task or in response to some system event / broadcast, JS will spin up, run your task, then spin down.
5353

5454
## Caveats
5555

5656
* By default, your app will crash if you try to run a task while the app is in the foreground. This is to prevent developers from shooting themselves in the foot by doing a lot of work in a task and slowing the UI. There is a way around this.
5757
* If you start your service from a `BroadcastReceiver`, make sure to call `HeadlessJsTaskService.acquireWakelockNow()` before returning from `onReceive()`.
58+
59+
[0]: https://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent)

0 commit comments

Comments
 (0)