Background Automatic Task with expo

Hi, I am doing my project with Expo CLI and I have a problem. I want to do some task every day automatically even the app is closed. For example: I want to send notifications to my users every day.
How can I solve this problem? Is backgroundFetch should be solution? Please provide some code to help me. Thanks!!! :grinning:

Hi

For notifications you could send Push Notifications. Basically the server would loop through your list of users sending each one the push notification.

If you want to fetch something in the background, use BackgroundFetch.

If you want to keep track of the location in the background, see the Background Location docs.

1 Like