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

The backgroundTimeRemaining coming very high even if the app is in background

I am trying to print the background remaining time when the application state is background.I am trying to read the time remaining in background to perform certain tasks when the background fetch is triggered. Here is my code:- UIApplicationState…
0
votes
1 answer

NSURLSessionDownloadTask continue downloading even if user kills the App

In Background Fetch Utility, data polling occurs when the app is in the background, suspended or not running state. If it is suspended, the system wakes it in order to run the background tasks. If it’s not running, the app is launched in the…
NSPratik
  • 4,714
  • 7
  • 51
  • 81
0
votes
0 answers

Background fetch in iOS 9. Dying after 1 hour

In our App we use background fetch to get user data (Location, Connections etc) and after 1 hour in background the App dying and we have not any updates. Why is this happening and how we can get results after 1 hour? This is our code: --…
0
votes
1 answer

Background Fetch iOS UIBackgroundFetchResult unrecognize selector

I am following AppCoda:Working with Background Fetch Programming and getting some error. I already created base app that can display table with data from its source, also it UIRefreshControl works well. Then I started to create its background…
yankoo
  • 5
  • 2
0
votes
1 answer

Android excessive data usage in Backrground Fetch

I am facing an issue with my android application where it keeps downloading a lot of data for users in the background fetch mode. I do invoke the app through an alarm to send a local notif, but that is pretty much it, apart from sending the…
Siddhant Jain
  • 489
  • 5
  • 26
0
votes
1 answer

iOS Background Fetch with Remote Notifications

Is it possible to use both background fetching and silent remote notifications at the same time to maximize the number of background activity? Apple says they put limits on both but using both would be a work around to such limits right? If I set…
Dylan Diamond
  • 161
  • 2
  • 11
0
votes
1 answer

How do bring my App "up to date" - background fetch?

I am looking for a good way how to make my app "upToDate". These are my requirements: I have an RESTful Webservice, with tasks for different users. Every user has an iOS App, which should get automatically updated when the Server/Service assigned a…
derdida
  • 14,784
  • 16
  • 90
  • 139
0
votes
1 answer

What is the downside of not returning UIBackgroundFetchResultNewData all the time when performing background fetch?

I've just implemented background fetch in my iOS app. I implemented this method in my app delegate: - (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler The correct…
Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156
0
votes
1 answer

How to tackle an app that fires recurring local notifications but on a changing schedule?

I'm creating an app that needs to fire local notifications for sunrise and sunset on a daily basis. Sunrise and sunset times changes every day. I want the registering of the local notifications to take place even if the user didn't open the app…
0
votes
0 answers

What is the correct way to fetch data from remote server periodically in iOS when app is background?

I need to fetch data from server and (probably) create local notifications for user. When in foreground, I use separate queue. I can do that when I am in background (after Home button clicked) as well, but there is also "background fetch"…
user996142
  • 2,753
  • 3
  • 29
  • 48
0
votes
0 answers

Core data requests does not work on background thread when in app in background mode in Xcode

I execute core data request not on main thread when my app is called to do background fetch (app state is background), and method freezes forever. But when I use main thread, it works. Should I always use main thread for core data when in background…
user996142
  • 2,753
  • 3
  • 29
  • 48
0
votes
1 answer

App not stopped when launched for background fetch from Xcode

When I launch my app from Xcode with Background Fetch mode, it works. But it should stop when I call callback handler, or after 30 seconds. But it does not! When I click Pause, I may see my main thread does not do anything. Is it some xcode-specific…
user996142
  • 2,753
  • 3
  • 29
  • 48
0
votes
1 answer

ios - How to implement background fetch correctly in ios swift

I have a situation where i am using background fetch to call my data sync process, As the sync function is a heavy task, it is executed in a background thread. here is my code, func application(application: UIApplication,…
Tej Pratap
  • 144
  • 1
  • 10
0
votes
1 answer

IOS - Make background fetch Occurs only once a day (No need for specific time)

I'm using background fetch to schedule task. If i understood correctly background fetch happens many times during the day. I need to limit it to occur only one time during the day. Everything is set up correctly,For now i have setted (as a temp…
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105
0
votes
1 answer

iOS - friendlist with push notifications [architecture]

I'm working on an app where users can send remote notifications (to run background fetch on the receiving device) to friends. The Facebook API can provide a friendlist. My question is, how can I send remote notifications to the specific facebook…
nor0x
  • 1,213
  • 1
  • 15
  • 41
1 2 3
15
16