How to use the expo-task-manager.isTaskRegisteredAsync function in expo-task-manager

To help you get started, we’ve selected a few expo-task-manager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / apps / native-component-list / src / screens / BackgroundFetchScreen.tsx View on Github external
async checkStatusAsync() {
    const status = await BackgroundFetch.getStatusAsync();
    const isRegistered = await TaskManager.isTaskRegisteredAsync(BACKGROUND_FETCH_TASK);

    this.setState({ status, isRegistered });
  }

expo-task-manager

Expo module that provides support for tasks that can run in the background.

MIT
Latest version published 5 months ago

Package Health Score

89 / 100
Full package analysis