25 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
68
views
iOS BGAppRefreshTask not running consistently — is my background task pipeline correct?
I’m implementing a background refresh task using BGAppRefreshTask in an iOS app.
The task checks if a specific condition has been met and may post a local notification, with throttling and debug ...
0
votes
1
answer
70
views
iOS Widget data not updating when app state background & closed
I'm developing a Flutter app that displays weather information in an iOS widget using the HomeWidget package.
The widget updates correctly when I open the app in foreground data is saved using ...
0
votes
1
answer
84
views
Silent failure when scheduling a background task
I am working on adding some background processing.
I register for background tasks and then schedule a single task.
I am seeing the following results:
Nothing fails or throws during the setup
The ...
-1
votes
1
answer
114
views
Is it possible to execute function periodically even if app is terminated?
I am building a Country Tracker app. User installs the app, through several APIs app get user country and saves it in the Core Data. The problem is that BGTask is unreliable. For the last 3 days I ...
3
votes
1
answer
2k
views
Registered BGTaskScheduler task isn't running launchHandler
I'm trying to schedule a background task to run in the background using BGTaskScheduler.shared.register(identifier:queue:launchHandler:), but the launchHandler block is never executed.
What I've tried:...
1
vote
0
answers
223
views
iOS Background Task Not Executing Despite Proper Registration and Configuration
I am facing an issue with the execution of background tasks in my iOS app using BGTaskScheduler. Despite proper registration and configuration, the BGAppRefreshTask is not getting executed. Here's the ...
1
vote
0
answers
933
views
Background Task in ios is not executed and can not be debugged in physical device
I have a flutter project that contains some native code, in this case I have a background task using BGTaskScheduler (using native swift), ok now the problem is that the task is never executed and ...
2
votes
1
answer
1k
views
BGTaskScheduler.shared.register() is called but the completion handler never fires
In a purely SwiftUI project I am trying to use the BackGround Modes in my iOS project and have enabled Background fetch in the Signing & Capabilities section of my target. I also made the entry ...
4
votes
1
answer
2k
views
background task (.backgroundTask) doesn't work in SwiftUI
I've configured background task in plist.info with an identifier updateCountry and Background Modes fetch and processing as capability.
I have locationManager with these functions:
func ...
2
votes
1
answer
1k
views
IOS: Background Task Only Executes Once or Twice, Not at Regular Intervals
My background task, implemented as per Apple's documentation, runs only once or twice instead of running continuously one after another. Seeking assistance to resolve this problem.
AppDelegate
import ...
2
votes
0
answers
781
views
iOS background task every 15 minutes
How can I create an API call, and when got the response a local push every 15 minutes, when the app is closed or in the background?
I tried BGTaskScheduler but it not triggered 15 minutes. I do not ...
3
votes
0
answers
337
views
How to test BGTaskScheduler in App (with out using debugger)
I have a BGTaskScheduler scheduled for background process. It is running in debugger mode but not working with out debugger. I have tried to test it on TestFlight as well, did not work.
I have tested ...
0
votes
1
answer
120
views
Is BackGroundTasks good option for making network call and send notification in a SwiftUI App
I am relatively new to Swift and currently writing an app on SwiftUI. My app makes a network call, lists buy/sell orders on different products, showing orders with different quantities and prices. The ...
0
votes
0
answers
41
views
Periodic IOS Background execution [duplicate]
An app has some periodic light background work, which is expected to run even when app is suspended.
Ofc, if user has swiped up, nothing can be done. When swiped from app switcher, if app was in ...
3
votes
1
answer
5k
views
BGTaskScheduler: Is it possible to schedule a background task inside a background task?
Let's say an app has a background task to execute after 1 hour, but when it executes, it discovers that the user has no internet connection, so it cannot do its job. Is it possible to schedule another ...