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
4
votes
3 answers

Background Upload is not working in Swift

I was trying implement a code where a API will be called shortly after a file has been uploaded into AWS server but it must be in background mode. Whereas the AWS sdk manages uploading file into their server in background mode but the following code…
Poles
  • 3,585
  • 9
  • 43
  • 91
4
votes
1 answer

Warning: Application delegate received call to -application:performFetchWithCompletionHandler: but the completion handler was never called

I implement the performFetchWithCompletionHandler (ie: background fetch) to download some data from a server. To do this, inside performFetchWithCompletionHandler, to not block the main thread, i create and start a new task (so in a background…
zeus
  • 12,173
  • 9
  • 63
  • 184
4
votes
1 answer

Swift background fetch location updates with Core Location

I want to use Background Fetch Location Updates service on my app. But don't show any output my codes here i want your help. import CoreLocation class ViewController: UIViewController, UITextFieldDelegate, CLLocationManagerDelegate { var…
SwiftDeveloper
  • 7,244
  • 14
  • 56
  • 85
3
votes
1 answer

BGTaskScheduler.shared.register Not Called

I'm using background refresh to schedule local notifications and update my widget. The problem is that the task registration method isn't called! func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:…
4mahmoud
  • 813
  • 2
  • 19
  • 31
3
votes
0 answers

Background fetch stopped working on ios 13 and newer

If a method is Deprecated, does this mean it will not work in updated systems? I was using setMinimumBackgroundFetchInterval for background fetch and I believe it stopped working for ios 13 and newer versions. Do you think it is because it is…
Ataman
  • 2,530
  • 3
  • 22
  • 34
3
votes
1 answer

Flutter, background fetch package not working, androidx incompatibility

I wanted to make some operations while the app was not running, so I decided to use the background fetch package.I followed the android setup step by step This is part of my pubspec.yaml version: 1.0.0+1 environment: sdk: ">=2.1.0…
Niccolò Simoni
  • 95
  • 1
  • 2
  • 8
3
votes
0 answers

OS X Background Fetch Equivalent

I'm familiar with the Background Fetch in UIKit but I was wondering if there is an equivalent for OS X apps. My application is bundled with a Safari App Extension that needs to update frequently. Auto update does not look like it's supported from…
3
votes
0 answers

Background fetch not executing

iOS is not executing PerformFetch. I've put the app in the background and just left the device. It's been three days and still PerformFetch is not executed. I know this because I'm using event tracking in MS App Center. public async override void…
empo
  • 1,133
  • 5
  • 21
  • 41
3
votes
0 answers

How to schedule background services while an iOS app is closed?

I am working on an app that keeps people updated with news around a certain event. That means that I don't want to run background fetches all the time. And one more thing, what I understood from Apple's background execution documentation is that it…
Ashraf Tawfeeq
  • 3,036
  • 1
  • 20
  • 34
3
votes
1 answer

0x8badf00d Crash after listening location on background fetch

In my ios app, I start listening user's location updates in the background for a while (up to 15 mins) when I receive background fetch execution. However, after I stop updates, the app crashes with the 0x8badf00d error. I've enabled background…
3
votes
0 answers

Swift Darwin notifications and background fetch

I have an app which is set up to use background fetch, remote notifications and push notifications (and app groups). I have the app working so that on receipt of a push notification, it will wake up from the background and perform some code. I am…
user2363025
  • 6,365
  • 19
  • 48
  • 89
3
votes
0 answers

iOS How to notify when a new photo added to photo album

I have a requirement to send an email whenever a new photo added to the photo album, similar stuff done by IFTTT app, but not getting any clue for where to start and how to proceed. I am not sure how iOS background executions will help me for this.…
Anshad Rasheed
  • 2,526
  • 1
  • 14
  • 32
3
votes
0 answers

Will background fetch be called when app is in background?

Will iOS call performFetchWithCompletionHandler for the running app that is taken to background (using Home button)? I thought it is only called when iOS launches my app to do background fetch. If iOS launches performFetchWithCompletionHandler even…
user996142
  • 2,753
  • 3
  • 29
  • 48
3
votes
1 answer

Background Fetch iOS - Terminated Apps

I think this might be answered quiet a few time, but still there are some unknown cases that I wanted to clarify. I have been looking at Background Fetch API for one of my iOS application. I learned from several articles that…
Anwer
  • 689
  • 1
  • 7
  • 10
3
votes
4 answers

Background Fetch Does Not Appear to Fire

In my app, I have performed the following listed below and have added counter to the app fetch routine to highlight the number of times fetch is called by iOS 8.1. Turned on Background Modes and enabled background fetch. Wrote code for…
mkneisler
  • 31
  • 1
  • 2
1 2
3
15 16