BackgroundFetch Error: evaluating '_ExpoBackgroundFetch.default.registerTaskAsync'

Please provide the following:

  1. SDK Version: 44.0.0
  2. Platforms(Android/iOS/web/all): Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I made a simple weather app and I’m trying to set up a way for it to update in the background. I followed the docs and requested help via the Expo discord for the past 3 days, but haven’t been able to progress.

Code - BackgroundFetchTest - Pastebin.com
Error: TypeError: undefined is not an object (evaluating '_ExpoBackgroundFetch.default.registerTaskAsync')

Any suggestions would be greatly appreciated!

Hey @ekarni, I don’t see any imports for either the expo-background-fetch or expo-task-manager modules in your code. Can you ensure you’ve installed them and imported them properly in your project.

If you have, can you create a public github repo so we can simply clone the code and run it locally without any additional steps.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.