Questions tagged [background-fetch]

Background fetch is a background execution mode on iOS 7 and newer, used for apps that regularly update their content by contacting a server can register with the system and be launched periodically to retrieve that content in the background.

Background fetch is a background execution mode on iOS 7 and newer, used for apps that regularly update their content by contacting a server can register with the system and be launched periodically to retrieve that content in the background.

Documentation:

238 questions
0
votes
0 answers

Is packages like background_fetch can reliably used for generating local notificaitions daily in Flutter?

I am working on a flutter app which is kind of reminder app. Showing notification is a core feature in it. There are different ways to schedule notifications, like daily, selected days in a week, monthly, or yearly. I am using…
0
votes
0 answers

iOS background fetch not working when device unplugged and screen is off

We need to track location of the device and need to run it periodically (we need to get updates, even when the device is not moving). For this purpose we are using background fetch with this config BackgroundFetchConfig( minimumFetchInterval:…
0
votes
0 answers

Handling Background Fetch in iOS

I am currently testing a background fetch/process with minimum functionality, which I couldn't make it happen after several days. What I originally wanted was that background task to happen every 5 or 10 minutes after clicking a button that leads to…
Runnan
  • 7
  • 2
0
votes
0 answers

SwiftUI: API fetch call in background

I'm developing an iOS app (SwiftUI, iOS15) which fetches data from an API using URLSession().dataTask(). The fetch request takes 30-60 seconds. Because the fetch request is long, the screen can turn off or the user can put the app in the background,…
user3320795
  • 523
  • 2
  • 6
  • 17
0
votes
1 answer

Is it possible to listen to device keyboard input while React Native app is closed?

I want to create a React Native app using Expo Managed workflow (which I've done before) but this time it should listen and "record" all device keyboard input while the app is in the background (something I've never done before). I know there are…
0
votes
0 answers

Use Flutter Firebase Cloud Message (notification) to trigger background task to get current device location and make API call even on app terminated

When I get Only data FCM notification, I want to get person location and send it to my API in all app states: Foreground, Background, Terminated. When app is in Foreground I have no problem. When app goes to Background I am not able to get device…
0
votes
1 answer

Updating android wigdet with flutter background_fetch

I have an app based on flutter and created a Home screen widget for android (with home_widget) showing information from the app. With flutter background_fetch I update these information regularly, which works fine. Now when I restart my phone…
0
votes
0 answers

why my flutter_background_fetch not work when app is terminate?

Hi I want my android app work in background even if the program completely close(terminate). I use the flutter_background_fetch for it. the notification show every 15 min correctly in app is open or go to background, But when I terminate app the…
sadegh
  • 103
  • 5
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

BGTaskScheduler.shared.register never gets called

BGTaskScheduler.shared.register never gets called . I even downloaded a projects from github that implemented this -> ex(https://github.com/sreexamus/BackgroundTasksPOC). Even in these projects the register function does not get called. …
0
votes
0 answers

Does performFetchWithcompletionHandler also run when the app is currently running and is in the foreground?

I want to do some data work in the background, but I don't understand the handling with performFetchWithcompletionHandler. Does it only run, when the app is in minimized and in background? What kind of another method can i use for this?
0
votes
1 answer

Workmanager flutter plugin or background_fetch is not working in release build while running in iOS

I am trying to run the sample project of background_fetch or Workmanager plugin in ios on release build but the background fetch function is not invoked and hence the execution of code is not happening. Any solution for this for ios release build?
0
votes
0 answers

AsyncStorage.setItem is not working with Expo BackgroundFetch

using "expo" (~43.0.2) and "expo-background-fetch" (~10.0.3), my app need to download update from server then save it into storage (AsyncStorage is simply used), but failed. here is my code snippet TaskManager.defineTask("test", async () => { …
Jacky Lau
  • 665
  • 5
  • 21
0
votes
1 answer

HealthKit HKObserverQuery that calls HKAnchoredObjectQuery Not Running Result Handler in Background

I have looked through so much Apple documentation and SO questions but still can't figure out why or even if this should work. I have a long running HKObserverQuery, I set this up in my AppDelegate and I have all the required permissions,…
jmichas
  • 1,139
  • 1
  • 10
  • 21
0
votes
1 answer

Flutter Background Service

Hi I'm building a VoIP App in Flutter. I use background_fetch to run a headless task in order to work even if the app is closed. The listener is working, and a notification is sent. But, as the application is closed, the push notification with wake…