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
2
votes
0 answers

iOS swift Background Refresh system settings - identify cellular data transfer

Some background information I'm using the silentPush feature (didReceiveRemoteNotification) to keep the iOS app synced with other platforms and my backend. So just to be sure, that the user enabled Background Refresh in his iOS settings, I'm…
AlexWoe89
  • 844
  • 1
  • 11
  • 23
2
votes
2 answers

Background fetch, testing problems

I have a react-native application which includes react-native-background-task which uses react-native-background-fetch. I configured a job to console.log a simple message when it runs. I understand that the background fetch is not working on…
parohy
  • 2,070
  • 2
  • 22
  • 38
2
votes
1 answer

Update data with URLSession in Background Fetch

I am developing an app and I need to update data in my app every day. I decided to use Background Fetch. I am downloading the data from an API so I am using URLSession. Since no completion handlers are allowed in performFetchWithCompletionHandler I…
Phyber
  • 1,368
  • 11
  • 25
2
votes
1 answer

PubNub prevent presence timeout

I'm looking into enabling background fetch in our iOS app to give time to PubNub to prevent a presence timeout. EDIT - Some background: our app is communicating its geolocation to a service over a pubnub channel. We ask the user to authorize…
Pierre Houston
  • 1,631
  • 20
  • 33
2
votes
0 answers

nw_socket_write_close shutdown (15, SHUT_WR): [57] Socket is not connected

While running my app in the background fetch, after a few fetches i receive the following error. Im using iOS 10.2.1 and Xcode Version 8.2.1 I have enabled background fetch in capabilities. Would anyone be able to tell me why its happening?…
sam k
  • 1,048
  • 2
  • 14
  • 22
2
votes
1 answer

Swift : How to run a GET call in background and then show notifications

I am making an app which displays data from a Website/Blog. User can follow any author. Requirement is , when the app goes to background 1) First a GET call for the data should run 2) After analysing the data, proper notifications should be…
Talha Ahmad Khan
  • 3,416
  • 5
  • 23
  • 38
2
votes
1 answer

Is it good practice to pass a specific NSTimeInterval to setMinimumBackgroundFetchInterval?

I'm I obliged to pass either UIApplicationBackgroundFetchIntervalMinimum or UIApplicationBackgroundFetchIntervalNever ? Or Is it possible to pass a custom interval instead, for example 10…
AziCode
  • 2,510
  • 6
  • 27
  • 53
2
votes
1 answer

IOS Firebase background fetch

I'm having trouble using background fetch on swift 2.0 according to the tutorial -> https://www.raywenderlich.com/92428/background-modes-ios-swift-tutorial3. I get this error: application:performFetchWithCompletionHandler: but the completion handler…
2
votes
1 answer

Backgroundfetch for more than 30seconds

I'm developing an iOS App, where I have to download multiple zip-Bundles. To handle the downloads I'm using an internal C++ http-framework. Is there any posibillity to do an Background-Fetch for more than 30sec? One possibility ist the usage of…
2
votes
1 answer

Send user location to server while app in background in ios

Please help me i am trying to send my current location of app to server while my app is in background mode. But after some time location update method is stops to get current location. - (void)startLocationTracking { …
BKjadav
  • 543
  • 2
  • 16
2
votes
1 answer

ios 8 Background fetch is never called on device more than once time

I created a test app for background fetches on iOS. And it works fine on the simulator via Debug -> Simulate Background fetch. But on device with iOS 8 it called only once a day. How to force iOS to call it more often? Here are my steps and code: 1)…
Nadzeya
  • 641
  • 6
  • 16
2
votes
1 answer

Background fetch stops working after about 10 to 14 hours

My application uses a backgroud fetch to send and upload a small portion of data every 30 minutes. The service is working correctly for about 10 - 14 hours after the application is minimized from working in the foregroud - the application is…
lorak
  • 113
  • 1
  • 6
2
votes
1 answer

IOS remote silent notification is not working during phone calls / network fluctuation

I am developing the iOS application where I am doing the background work. I am awaking the app by sending the silent notification. The code is working fine most of the time. The issue is during the phone call app is not awaking, even during the low…
Uttam Kadam
  • 458
  • 1
  • 7
  • 20
1
vote
0 answers

How to enable Background Fetch for iOS in Codename One

The original documentation of the Codename One BackgroundFetch interface says: "include fetch in the ios.background_modes build hint". The build hints can be found in the Codename One simulator in the "Tools" menu. So I entered fetch in this field…
1
vote
0 answers

How do I fix background fetch crashing in iOS 15 and iOS 16?

BackgroundFetch Crash in iOS15 and iOS16 Monitor Type: Mach Exception Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: KERN_INVALID_ADDRESS at 0x00000001df8354b0 Crashed Thread: 0 Pthread id: 23896613 Thread 0 Crashed: 0 BaseBoard …
EverMe
  • 11
  • 3