background_locator_fixed
background_locator_fixed copied to clipboard
[documentation/example issue] ios was getting can't find import in appdelegate.swift for pathprovider ios
when change to path provider foundation instead of ios module it is able to move forward ` import path_provider_foundation import UIKit
func registerPlugins(registry: FlutterPluginRegistry) { GeneratedPluginRegistrant.register(with: registry) }
@UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication .LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) BackgroundLocatorPlugin.setPluginRegistrantCallback(registerPlugins)
registerOtherPlugins()
return super
.application(application,
didFinishLaunchingWithOptions: launchOptions)
}
func registerOtherPlugins() {
if !hasPlugin("io.flutter.plugins.pathprovider") {
PathProviderPlugin
.register(with: registrar(forPlugin: "io.flutter.plugins.pathprovider")!)
}
}
} ` import path_provider_foundation
PathProviderPlugin
are the changed lines
I have the same problem did you find a solution ?
I went to transitiot soft plugin. It's great
....sent from my phone
On Mon, Jul 17, 2023, 4:21 PM Luca @.***> wrote:
I have the same problem did you find a solution ?
— Reply to this email directly, view it on GitHub https://github.com/Yukams/background_locator_fixed/issues/73#issuecomment-1638900151, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXBGYKUPGUVE4NLCK5HFRDXQWUF7ANCNFSM6AAAAAAVXXUMUI . You are receiving this because you authored the thread.Message ID: @.***>
@neiljaywarner Sad that this plugin cost so much.
But it seems like we don't need to do anything on IOS anymore. All my plugins worked in the isolate without changing anything.