Questions tagged [react-native-background-fetch]

13 questions
3
votes
0 answers

[react native][ios][react-native-background-fetch] dont't work on ios

I've implemented react-native-background-fetch in my app, and it works well on Android, but not on ios - Xcode Version 11.4 Simulate Background Fetch works. I noticed also that Background Fetch triggers once on the first application start, but not…
2
votes
0 answers

working with react-native-offline in background

I'm trying to find a way to launch actions (redux actions) stored in AsyncStorage by react-native-offline when the app is in the background. I've read about Headless JS and react-native-background-fetch but haven't seen the implementation of…
1
vote
0 answers

expo standalone app background fetch not starting task automatically in iPad

I am developing a expo react native standalone app . I am integating a expo background fetch in my mobile app project. I writing a code to start a background task every minute it's working properly in the android. if I am trying with iPad with the…
1
vote
0 answers

How do I use Expo background task while app is terminated?

How can I use background-fetch in Expo for sending phone location to server for every minute. I want task to perform when app is not running in background for both iOS and Android. Is this possible with normal Expo or do I have to eject, what path…
1
vote
0 answers

Having tasks complete in background for react native ios

Ive cycled through a number of libraries trying to implement a timer that runs in background for React Native (ios).....after an hour I want user notified that hour has passed (even if app is in background). Ive…
james murphy
  • 1,505
  • 5
  • 31
  • 57
1
vote
0 answers

Background Location for react native

I am creating a react native app for location tracking so I wanted to know how can I work with it. Requirements: Start tracking location on button click. Fetch both foreground and background location. Fetch location even when the app is…
1
vote
0 answers

React Native : want to run a function from app, and it would be not stop if app in background or foreground state

I have a function that has a for loop and I trigger the APIs in the queue it's working very well but if I change my app state foreground to background my queue was paused until I reopen the app. That function doesn't need to stop until I stop…
0
votes
1 answer

Can I do a background api call when the app is terminated/killed by the user in react native?

Can I do a background api call when the app is terminated/killed by the user in react native? I tried with react-native-background-actions & react-native-background-timer. Working fine in android but not in IOS when user terminate/kill the app
0
votes
0 answers

My React native application on android is being killed when trying to start a background fetch task on device reboot

I have created a React native application, which has a foreground service that needs to be started automatically when the device is rebooted. This foreground service functions 100% when it is started normally when opening the app (as I've configured…
0
votes
1 answer

Play Webrtc Audio message when IOS app is in background

Hi this might be duplicate to this question. But I did not find right answer for this. I have developed an app like zello push to talk using react-native. I want to play the audio message automatically without any user interaction when the app is in…
0
votes
0 answers

need to listen socket events in expo background fetch i tried but not working

const TASK_NAME = "VIDEO_CALL_TASK"; TaskManager.defineTask(TASK_NAME, async () => { try { let newSocket = io("wss://url"); newSocket.on("error", (e) => { console.log("socket error is ", e); }); …
0
votes
0 answers

how to send push notifications from node.js server to a react native app even when the app is closed without using APNS/GCM/FCM/SNS...?

I did some research and I found these tools coggle, I don't know if it is possible to do this and if it is, how to do the background tasks in a way that I can receive notifications even when the app is closed, how to handle socket connection when…
0
votes
1 answer

Using React Native Background Fetch, how do I run only a headless task, and not the default task?

As I've understood from the documentation, you initiate a default task (which runs when your app is minimized) and also optionally a headless task (which runs when your app is terminated). Like this: //configure normal background task, set time…
Ray
  • 3,864
  • 7
  • 24
  • 36