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
1 answer

background fetch in a swift package

What I am trying to do:- I am trying to build a custom SDK (via swift package manager) which my clients will just import and leverage the features. My custom SDK helps connect devices and then read data. I am fusing some cloud uploading…
Siddharth Choudhary
  • 1,069
  • 1
  • 15
  • 20
0
votes
0 answers

Scheduling local notifications from background fetch in swift / iOS

In my app I need a background-fetch task that queries a server and notifies the user with a local notification if there's any new data. I can't seem to get the app to push the notifications when it's in the background, even if I simulate background…
0
votes
1 answer

Alamofire API call from background mode from userNotificationCenter not working

I am implementing Rich notifications using Notification Service Extension in my app. On click of action button i am calling an API which is working when app is in foreground mode but not working when app is in background mode.. I am getting…
0
votes
0 answers

Auto logout after 5mins App is in terminate state or background state in xamarin forms?

I'm working on Background Task using this link it's working in android when app in background state and terminate state but not in iOS. Right now it's working only when user open the application. But in my scenario after 5mins user will use the app…
0
votes
2 answers

Need to run the app in android device after killing it in flutter

Need to run the app in an android device after killing it in a flutter. I'm using background_fetch, it works fine when app is live. but it won't run after killing the app. BackgroundFetch.configure(BackgroundFetchConfig( minimumFetchInterval:…
kirubha sankar
  • 150
  • 1
  • 12
0
votes
1 answer

expo-background-fetch not working after reboot on newer versions of Android

I'm having a few issues with the background fetch library. Everything works well when I tested it in Android 6, the task was running while the app was in the background, when it was terminated and when the phone rebooted, as it should. But then when…
0
votes
0 answers

Can I only use background fetch in Xcode to download new content from the internet?

I used a pdf kit to show the daily menu of a cafeteria as a pdf in my app. The menu changes everyday. I want to use background fetch to load the new content. Is it possible to get new content in the app by uploading a pdf of the new menu in my Xcode…
JPJerry5
  • 107
  • 10
0
votes
0 answers

What happens when I don't call UIBackgroundFetchResult completionHandler?

Apple push notification comes with a completionHandler which is recommended to be called after the task finishes for background push, - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo…
0
votes
1 answer

ionic backgroundFetch config not updating

I'm building an ionic app with capacitor. I'm hoping that my app can perform background tasks after termination. If i'm reading the documentation correctly this should be possible by setting stopOnTerminate: false I've created a blank app that I…
0
votes
1 answer

Periodic location report of device using flutter

I need to report the current location of the device using a flutter app. I need to do that continiuesly even when the app is closed. I currently implemented it using background_fetch which does the job about every 15 minutes. It works well when the…
mehrdad seyrafi
  • 3,084
  • 2
  • 19
  • 16
0
votes
0 answers

send data to server when app is in background swift 3

I need to send the data from coreData to server after 30 minutes even the app is in the background. Currently i'm doing it with timer but timer gets stop working when my application enters background.
0
votes
0 answers

iOS Background Fetch is not invoked

I am trying to implement background fetch in my iOS app (it's a simple http call that downloads some data for later processing). I enabled background fetch in my project capabilities: Also in AppDelegate I set minimum fetch interval: func…
antanas_sepikas
  • 5,644
  • 4
  • 36
  • 67
0
votes
0 answers

App fails to get response as soon as it goes in background mode

I have an api call which I need to call whenever app goes in background and when it becomes active. I have placed breakpoint in the response handler. When app becomes active, control comes in breakpoint but it never does when app goes in background.…
Nitish
  • 13,845
  • 28
  • 135
  • 263
0
votes
0 answers

Background fetch never fires without Xcode

Background fetch works when i use Xcode's background fetch simulation. But when device is not connected to Xcode, background fetch not calls for about many hours of testing. I enabled capabilities, my app is not terminated. Any suggestions? func…
BlindJoeDeath
  • 71
  • 1
  • 6
0
votes
1 answer

URLSession background upload - no Internet connection

I'm using URLSession with background upload. I set session delegate to self. I get no delegate methods called when I start upload task with no Internet connection. I want to show message and cancel task if there is no Internet connection or it…
Maksym Shulha
  • 125
  • 1
  • 1
  • 8