Post

Replies

Boosts

Views

Activity

Network Call (Rest API) Fails During iOS Background Task Execution
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.
1
0
382
Jun ’24