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

'content-available' notifications not always sent to app (didReceiveRemoteNotification)

I've added push notifications to my app, and the notifications are sent with 'content-available'. I'm seeing this wierd behviour that (usually) 2 of 5 notifications doesn't reach the app's application(_ application: UIApplication,…
0
votes
0 answers

How to fetch data in the background, when the app is terminated and when app is in foreground

I'm new to iOS. I have googled a lot for this question, tried many approaches and finally, I'm here. In my application, I have to push a notification in the background when a new record is found in the API response. As per Apple documentation, I…
0
votes
1 answer

why I can't use background mode in my app in swift 3?

I want to use background mode in my app so in the capabilities I ticked background fetch and notification But The problem is that just in the simulator every things are ok and in the real iPhone the app will freeze in the background
Saeed Rahmatolahi
  • 1,317
  • 2
  • 27
  • 60
0
votes
2 answers

iOS Backrground Sync Alternative for enterprise apps?

I have been investigating iOS background fetch for our enterprise applications. According to articles like this, there are limitations like having 30 seconds to download before the app is terminated and the may be (unconfirmed) a penalty where after…
Barrett
  • 470
  • 4
  • 11
0
votes
0 answers

Background fetch and refresh completed after viewDidLoad in iOS 10

I'm trying to implement background fetch as well as refresh in iOS 10. I'm using XML parsing to parse the data and then storing it in a file in the document's directory. For parsing XML I'm using a custom class (XMLParser) that confirms the…
Prashant
  • 336
  • 3
  • 18
0
votes
1 answer

How to make an iOS app execute some code even when app is not running in the background?

On Android, services give us the flexibility to continue to run code even when the app is not running in the background, as the service continues to execute even if the app that started the service is terminated. I am looking to do the same on iOS.…
vipul bansal
  • 13
  • 1
  • 7
0
votes
1 answer

Background Fetch and Core Location with schedule

I need to track users first and last coordinates scheduled. For example: I set to track location from 10.00AM to 12.00AM and I need to store first location(at 10.00AM) and last location(at 12.00AM). I try to use background fetch, but I havent idea…
0
votes
2 answers

Background Fetch not working on all devices

In a test device that's never been used for development, iOS Background Fetch works fine, continuing during the night. But on two other devices, used for development, the fetches sometimes occur, but often don't, not even during the night. Did…
meaning-matters
  • 21,929
  • 10
  • 82
  • 142
0
votes
1 answer

It is possible to set static time into UIApplicationBackgroundFetchIntervalMinimum?

I am using UIApplicationBackgroundFetchIntervalMinimum for background fetch for updating UI. But I know that system decides when to call its method Performfetchwithcompletionhandler So, sometime it may take 10 min or more or less than 10 min. I want…
Jitendra Modi
  • 2,344
  • 12
  • 34
0
votes
0 answers

Have to call a method in interval of 15 min, 30min 1 hr ,2 hr and 5 hr to update content. Best way

I have to call a method to update the db which exposed by the some sdk, Now I have confusion to choose concept to do this. Should I go with : UILocalNotification Background Fetch Timer (Won't be good idea I guess) Please, suggest.
Sanoj Kashyap
  • 5,020
  • 4
  • 49
  • 75
0
votes
0 answers

How to do Client Certificate Authentication using NSURLSession with background session configuration?

My application backend requires Client Certificate authentication. If I configure NSURLSession with default configuration, didReceiveChallenge delegate gets called where I am providing valid client certificate. It successfully completes the task.…
0
votes
1 answer

iOS - network connection when app is in background when notification arrives

I have a requirement where I need to make a network connection when a new push notification arrives while app is in background. Is it possible to do so? Some hook? Right now, I make the connection when notification is swiped to open the app.…
GJain
  • 5,025
  • 6
  • 48
  • 82
0
votes
2 answers

I can't fetch data in background in iOS

My app does the intended operations when I use Simulate Background Fetch in the Debug tab in Xcode, however, when the app is running on my phone nothing works. Has this happened to someone before? How did you resolve it? I'm currently using Swift…
the_ccalderon
  • 2,006
  • 2
  • 13
  • 24
0
votes
0 answers

How to run background process for background fetch mode in iOS App?

I have made a service in android native with the help of Broadcast receiver and schedule it with the Alarm Manager and this service runs in background at every 5 minutes interval. This service is running even when app is closed/terminated/forced…
0
votes
1 answer

how to insert push notification payload into database when app is in background

How to insert the push notification payload data into database when app is in background. I tried the content-available tag but it doesn't work for me. Please help me out
Prashant Sharma
  • 1,357
  • 1
  • 21
  • 31