How to use the expo-background-fetch.getStatusAsync function in expo-background-fetch

To help you get started, we’ve selected a few expo-background-fetch 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-background-fetch

Expo universal module for BackgroundFetch API

MIT
Latest version published 8 days ago

Package Health Score

92 / 100
Full package analysis