From f13fa65af595703518d0e656b8b7fd26135a3ebd Mon Sep 17 00:00:00 2001 From: Bart Onstee Date: Fri, 2 Apr 2021 14:47:43 +0200 Subject: [PATCH] Update BackgroundTask.tsx --- src/BackgroundTask.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/BackgroundTask.tsx b/src/BackgroundTask.tsx index f7f53b2..a55c98c 100644 --- a/src/BackgroundTask.tsx +++ b/src/BackgroundTask.tsx @@ -45,9 +45,9 @@ export class BackgroundTask extends Component> } // Initialize BackgroundFetch only once when component mounts. - await BackgroundFetch.configure( + let status = await BackgroundFetch.configure( { - minimumFetchInterval: 30, //Minimum interval time for schedule. Can be (much) longer. + minimumFetchInterval: 15, //Minimum interval time for schedule. Can be (much) longer. enableHeadless: true, //HeadlessJS mode for Android only startOnBoot: true, //Start when device starts, Android only stopOnTerminate: false //Stop task when app is killed, Android only @@ -55,6 +55,8 @@ export class BackgroundTask extends Component> onEvent, onTimeout, ) + + console.log('[BackgroundFetch] configure status: ', status); } }