warning: method definition for 'set RegisterPlugins:' not found [-Incomplete-implementation]
by sayem312518 Updated: Feb 4, 2023
Guide Kit
warning: method definition for 'set RegisterPlugins:' not found [-Incomplete-implementation]
https://github.com/fluttercommunity/flutter_downloader/issues/219#issuecomment-585174821
Hi! I'm having a problem running an app with this plugin installed. I've done everything I found on the internet and nothing works... If I comment await FlutterDownloader.initialize(); I can start the application.
Deployment Information
"/ios/Runner/AppDelegate.swift" file.
I had the same problem.
I solved it by adding the code below.
"AppDelegate.swift"
import UIKit import Flutter import flutter_downloader @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } } private func registerPlugins(registry: FlutterPluginRegistry) { if (!registry.hasPlugin("FlutterDownloaderPlugin")) { FlutterDownloaderPlugin.register(with: registry.registrar(forPlugin: "FlutterDownloaderPlugin")) } }