diff --git a/docs/HeadlessJSAndroid.md b/docs/HeadlessJSAndroid.md index 8713b9eee..b60f23e42 100644 --- a/docs/HeadlessJSAndroid.md +++ b/docs/HeadlessJSAndroid.md @@ -43,7 +43,9 @@ public class MyTaskService extends HeadlessJsTaskService { return new HeadlessJsTaskConfig( "SomeTaskName", Arguments.fromBundle(extras), - 5000); + 5000, // timeout for the task + false // optional: defines whether or not the task is allowed in foreground. Default is false + ); } return null; }