How to edit appDelegate.swift file from flutterflow > vscode

Integrations

I am trying to implement background processing in IOS, however one of the steps mentioned in the medium article is to edit the appDelegate.swift file in vscode, I managed to open my code in vscode and edit, save the file. However when I go into local run (using real device) and file gets reverted back to the original version, and then when I minimize the app and I need to run mybackground tasks I get an error.

These are the lines I need to add to the delegate file:

import flutter_background_service_ios // add this

SwiftFlutterBackgroundServicePlugin.taskIdentifier =”com.Example.background.refresh”

https://medium.com/@gulshanpatel269/how-to-implement-background-service-in-your-flutterflow-especially-for-ios-application-9ddc4f491706

What have you tried so far?

Editing the file via xcode

editing the file via vscode

Did you check FlutterFlow's Documentation for this topic?
No
3
2 replies