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

Background fetch performFetchWithCompletionHandler not working?

My app want to update server about users location after every 5 seconds even if app is in background. I implemented Background fetch for it. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject:…
Azhar
  • 20,500
  • 38
  • 146
  • 211
0
votes
2 answers

How can I do an action on receiving a remote notification even when the app is in background or terminated?

I have used this function: func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) but getting no result.…
0
votes
2 answers

Alternative to Background Fetch

I need to have my app sync with a server via HTTPS GET at least once daily so it can provide the most up-to-date information to its users. I am currently using the Background Fetch API, but it triggers very infrequently, to the point where the app…
Tidal5
  • 110
  • 1
  • 12
0
votes
1 answer

Background Fetch doesn't execute in background

I'm trying to implement Background Fetch in my app. Consider this function: func fetchAll(completion: @escaping (UIBackgroundFetchResult) -> Void){ DispatchQueue.global(qos: .background).async { let dGroup = DispatchGroup() …
Sjakelien
  • 2,255
  • 3
  • 25
  • 43
0
votes
0 answers

local notification with background fetch swift 4

I am struggling to get a local notification to run using background fetch. Ideally what I need is to update my JSON data and if it contains a value then send a local notification to the user. as yet I am unable to even send a local notification…
confusedChris
  • 93
  • 1
  • 4
  • 8
0
votes
1 answer

Is iOS Background fetch triggered only in background mode?

I am working on the iOS app, that needs periodic downloads from the server both in active and background mode. I know that for the Background mode there is a possibility to use Background Fetch functionality. However, I did not find if Background…
RadioLog
  • 582
  • 1
  • 4
  • 20
0
votes
0 answers

Periodic background fetch or downloading if app is not running / force quite/ terminated

Scenario: Backend returns a list of appointments with timings and their priorities for the current day (24 hours). iOS application checks for the most important (top priority) meeting and schedule local notification for that particular appointment…
Ankush
  • 2,405
  • 3
  • 22
  • 45
0
votes
1 answer

iOS background fetch not working

I want to pull some data from server in every 30 min interval and set local notification to remind the user and i implemented below code to perform this operation. - (BOOL)application:(UIApplication *)application…
myCmyL
  • 435
  • 2
  • 4
  • 11
0
votes
0 answers

Background Refresh App is not working sometimes

I am using background capabilities in my app for which I have enabled it from capabilities. But sometimes it works well and most of the time it does not work. - Background App Refresh is on From Setting of the device - Device is not on the low power…
0
votes
1 answer

Method call in a particular time interval till the application is in device

Basically I need to create a Beacon for my application to send the packet to my server in every 15 min till my application is in my device. I need to send in every state of my application bather about the application is in frontend or back end.…
Myaaoonn
  • 1,001
  • 12
  • 25
0
votes
1 answer

How to update app from Today extension

I have requirement to update application containing viewcontroller from todayextension widget view controller when app is in either in background/foreground state. Lets assume. App containing viewcontroller contains list of information. Next press…
0
votes
1 answer

Getting continous user location and based on that sending information to server

I've got a concept of adding feature to my app which will register user location in interval of few seconds. Then sending this coordinates through cellular or Wi-Fi all when staying active in background. I need to send this in almost real time, so…
Maxxer
  • 120
  • 10
0
votes
1 answer

Xamarin iOS: Will finally be called when expired handler called in background fetch

If I have a function in PerformFetch to do background fetching in iOS. I have "finally" statement inside the PerformFetch. When the background fetch expired will the finally block get call as well. Or will it go straight to the ExpirationHandler…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
1 answer

xamarin form App refresh on background or minimized

I need to refresh the application when push notification came at background. without opening push notification UI is not affecting . Have anyone know how to update the application when its minimized where new update came. I have read Background…
Riyas
  • 475
  • 1
  • 8
  • 27
0
votes
1 answer

Background Fetch Ionic configuration

I'm using the Ionic Background Fetch plugin as it says at https://ionicframework.com/docs/native/background-fetch/ but the issue that I have is that I don't have a way to configure the callback function that should be executed on user's prime time…
gaurrus
  • 111
  • 2
  • 10