Issue Statement:
I am encountering difficulties with executing network calls from within a Flutter method during iOS native background task handling.
Background:
In my iOS Flutter application, I've implemented background task handling using native iOS code (Swift), leveraging the BGTaskScheduler's BGProcessingTask provided by iOS. The background task is set up to perform periodic network requests, but the network calls are made through a Flutter method invoked via platform channels from the iOS code.
Problem Description:
While the background task executes as expected and invokes the Flutter method successfully, the network calls initiated within the Flutter method fail to complete during background task execution. The method execution seems to proceed up to the point of initiating the network call, but the call itself does not complete successfully.
Post
Replies
Boosts
Views
Activity
Is there any possible way to run a background task in an iOS App when the app is forced quit or when the app is not in the App Switcher?