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

PerformFetchWithCompletionHandler called twice when simulating with Xcode

In Xcode 7.0.1 the "simulate background" fetch command causes performFetchWithCompletionHandler to be triggered twice. Is this an Xcode debugging error, or can this happen on a device running a release build of the application. Update Now we have…
MarkHim
  • 5,686
  • 5
  • 32
  • 64
35
votes
2 answers

How to troubleshoot iOS background app fetch not working?

I am trying to get iOS background app fetch to work in my app. While testing in Xcode it works, when running on the device it doesn't! My test device is running iOS 9.3.5 (my deployment target is 7.1) I have enabled "Background fetch" under…
Jason
  • 2,223
  • 2
  • 20
  • 28
31
votes
1 answer

expo.io's BackgroundFetch is not running the defined task

I am currently developing an app for iOS with expo sdk-version 32. I have to call a REST service periodically from my app. In order to do that I tried to utilize the new BackgroundFetch API. Here is my Code: const BACKGROUND_LOCATION_SENDING_TASK…
Struemmeck
  • 421
  • 4
  • 5
25
votes
2 answers

completionHandler of the 2 methods performFetchWitchCompletionHandler AND didReceiveRemoteNotification interfere each other?

I have a iOS (swift) Application available AppStore since November 2017. I added Firebase Analytics and Crashlytics to proactively see issues which didn't occur during development and testing. I'm currently struggling with the following Stacktrace,…
AlexWoe89
  • 844
  • 1
  • 11
  • 23
17
votes
4 answers

Background Fetch at Specific Time

I am looking for solution to get data in background mode even app is terminated. There are lots of tutorials and answers available for this questions, but my questions is different than other. I haven't find any proper solution on stackoverflow, so…
Sagar Chauhan
  • 5,715
  • 2
  • 22
  • 56
14
votes
2 answers

iOS10 Background fetch

I have tried to implement background fetch, to hopefully can wake the app from time to time. I have done these: func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?)…
user6539552
  • 1,331
  • 2
  • 19
  • 39
13
votes
1 answer

Keychain sometimes returns empty value

We are using native key-chain wrapper class to store and retrieve values from the key-chain. But in some case the value is getting deleted/empty. We have the below items enabled in our app Location service ON - Always state initially and user can…
13
votes
2 answers

iOS Background Transfer - com.apple.nsurlsessiond folder full of tmp files

We've written a media application that allows you to get a list of latest videos as json list using BACKGROUND FETCH then it uses BACKGROUND TRANSFER to tell iOS to download the video one by one and go back to sleep and to wake the app when its…
brian.clear
  • 5,277
  • 2
  • 41
  • 62
12
votes
1 answer

Dart Error: Dart_LookupLibrary: library 'package:background_fetch/background_fetch.dart' not found

How can I solve this problem: E/flutter (18287): [ERROR:flutter/shell/common/shell.cc(89)] Dart Error: Dart_LookupLibrary: library 'package:background_fetch/background_fetch.dart' not found. E/flutter (18287):…
Maalmi
  • 123
  • 5
12
votes
2 answers

Suddenly getting many Fabric Out of Memory sessions: Can Fabric OOM Reports ever be false alarms?

I recently added background fetch in my application and it is working well. I recently noticed in Fabric that the amount of OOM free sessions have gradually gone from 100% to a daily average steady in the teens as low as 14%. I only saw a few…
Barrett
  • 470
  • 4
  • 11
12
votes
5 answers

How to run operations in background while an iOS application is in foreground

I have a JSON file populated with strings data in Documents Directory. In user Interface of application there is a UIButton. On button press, a new string appends into the JSON file. Now I am looking for any iOS Service that helps me to send these…
user3314286
  • 243
  • 3
  • 18
12
votes
2 answers

Background fetch is not working after killing the app

I'm trying to get data from url with background fetch. My func tries to get data and if there is a new data, it sends local notification. Background fetch works after about 10 - 20 minutes when i minimize the app. But when i kill the app (double…
Meryem Uysal
  • 191
  • 1
  • 2
  • 13
12
votes
2 answers

Remote Notification callback not being called during phone call

I have created an app in which background fetch code is written on receiving push notification. I have enabled the background mode in .plist, content-available key is set to 1 in push notification payload, registered for push notification and using…
GAURAV VIG
  • 269
  • 2
  • 9
10
votes
2 answers

iOS11 swift silent push (background fetch, didReceiveRemoteNotification) is not working anymore

I was hoping that the iOS11 release will fix the silent push issue, which was in the latest betas and GM version of iOS. Currently I'm struggling to understand, why I don't receive any silent push messages, which should actually wake up my app to…
AlexWoe89
  • 844
  • 1
  • 11
  • 23
10
votes
1 answer

What is the different between background task and background fetch correctly?

I am looking at some document on the web about background task and background fetch. Background task is a task which performance at the background while the app still running. When the app is in the background, the task have a limited time to get…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
1
2 3
15 16