From c2ed2ece953e45dc24aebbb5f10a298455e230d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Wed, 19 Oct 2016 15:17:50 -0700 Subject: [PATCH] Undo markdown typo fix. Summary: See #10448. Confirmed link is rendered correctly. cc foghina Closes https://github.com/facebook/react-native/pull/10468 Differential Revision: D4047432 Pulled By: lacker fbshipit-source-id: dfa1427d6dcd7b2e5e66ce276cae1ed10778c4ff --- docs/HeadlessJSAndroid.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/HeadlessJSAndroid.md b/docs/HeadlessJSAndroid.md index 4fc6f4be3..e7a79f9a3 100644 --- a/docs/HeadlessJSAndroid.md +++ b/docs/HeadlessJSAndroid.md @@ -49,9 +49,11 @@ public class MyTaskService extends FbHeadlessJsTaskService { } ``` -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. +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. ## Caveats * 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. * If you start your service from a `BroadcastReceiver`, make sure to call `HeadlessJsTaskService.acquireWakelockNow()` before returning from `onReceive()`. + +[0]: https://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent)