background_locator_fixed icon indicating copy to clipboard operation
background_locator_fixed copied to clipboard

[documentation/example issue] ios was getting can't find import in appdelegate.swift for pathprovider ios

Open neiljaywarner opened this issue 1 year ago • 3 comments

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

neiljaywarner avatar Mar 11 '23 22:03 neiljaywarner

I have the same problem did you find a solution ?

LucaCoduriV avatar Jul 17 '23 21:07 LucaCoduriV

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 avatar Jul 18 '23 00:07 neiljaywarner

@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.

LucaCoduriV avatar Jul 18 '23 10:07 LucaCoduriV