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

Background mode (fetch) in iOS 8

I'm working on an iOS app that uses the background mode to post an update to the server. App wakes, checks the battery status, kicks off an background process and calls the completion handler. In that exact same order. And it works fine. In the iOS…
Stefan
  • 434
  • 1
  • 5
  • 10
0
votes
1 answer

Background task execution is not working as expected

I have a requirement to make an web-service call up on tapping actionable buttons from the Remote notification. On the Remote notification, we have two buttons "Details" and "Fetch". "Fetch" is a background action (Activation Mode =…
0
votes
2 answers

Background App Fetch and App Snapshotting

I am developing an app where I use iOS's "background app fetch" to keep the data of my app up to date. This is working fine except the "snapshot" of the app is not updated with this fetch. When I say "snapshot" I mean the image that iOS takes when…
0
votes
1 answer

OAuth2.0 refresh token never completes in background fetch

I am trying to check emails on gmail while app is in background. I have to deal with OAuth2 to get to the gmail, so 1st I am refreshing the token. Then in finishedRefreshWithFetcher, if no error I am checking emails using Mailcore2. It all works…
Boris Gafurov
  • 1,427
  • 16
  • 28
0
votes
2 answers

Delay inside Background Fetch EXEC_BAD_ACCESS

I am creating an application that works in background mode (minimized), and every 90 seconds it performs a certain method that checks some information on a server. The code is this: AppDelegate.m - (BOOL)application:(UIApplication *)application…
LettersBa
  • 747
  • 1
  • 8
  • 27
0
votes
1 answer

UIApplication's applicationState returns wrong value

My app execute background fetches to update some data. In my initial view controller's viewDidLoad method I want to detect wether my app runs for background fetch or not? I know that it's very easy to check the app's state using this: if…
tagirkaZ
  • 469
  • 7
  • 19
0
votes
0 answers

How can I refresh my app data regularly before iOS 7?

My iOS app needs to refresh data regularly from server, even when the user doesn't start the app. With iOS7, I can use the background mode 'fetch' to refresh data regularly; How can I do this in iOS versions prior to 7? Specifically, can I use local…
NeoWang
  • 17,361
  • 24
  • 78
  • 126
0
votes
1 answer

ios 7 fetch offline message from xmpp server

I am developing chat application using XMPP protocol. My development target is iOS 7.0 Every think is working fine user can able to communicate only when they are online. But I want to notify user message has come when they are offline. I have tried…
Mohammed Ebrahim
  • 849
  • 1
  • 12
  • 22
0
votes
2 answers

Can i use startupdatinglocation in background?

I need to know if I am near to a saved Geo-location in my app within a range starting at 10 Meters to 500 Meters in background. I have used startMonitoringForSignificantLocationChange but I am not getting accurate results. Instead using…
-1
votes
1 answer

How to download data from server when application is in background in ios

In my application , After receving push notification I need to download data from server and saved into database when application is in back ground. here is my code NSOperationQueue *myQueue = [[NSOperationQueue alloc] init]; NSURLRequest…
-1
votes
2 answers

What is the best way to implement background service which run after every 10 minutes to fetch data from url in IOS?

I want background service which run after every 10 minutes to fetch data from url and update it in database. I have searched a lot. it give me examples which run continuously for 3 minutes and then stop. or examples of pull and refresh data. but I…
-2
votes
1 answer

How to awake the app when user shake the mobile phone in flutter

I am using CallKeep to awake the app (for shake detection I am using Shake plugin) when shaking the mobile, I want to up the flutter app when user shake the phone and app is killed. I know I can use background_fetch: ^1.0.0, but problem is that it…
Safdar Ali
  • 47
  • 5
-2
votes
1 answer

Sending Network Request as soon as device is unlocked

Apologies if this question has already been asked but during my search of stackoverflow i could not find an exact answer to this question. Is there any allowed way that my app can make a network request as soon as the iOS device is unlocked ? All of…
dev_ios999
  • 339
  • 3
  • 9
1 2 3
15
16