Code:
@objc class AppDelegate: FlutterAppDelegate {
var test:GRGrabba?
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
initateGrabbaConnection()
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
func initateGrabbaConnection(){
self.test = GRGrabba.shared()
self.test?.delegate = self
self.test?.open()
}
extension AppDelegate : GRGrabbaDelegate{
func grabbaConnectionEvent() {
}
func grabbaConnectionDidFailWithError(_ error: Error!) {
print("grabba connection error", error)
}
}
Я работаю над примером проекта во флаттере в iOS. Я реализовал методы делегата Grabba. Когда я выполняю методы делегата кода, не вызываемые. Что не так с моим кодом. Любая помощь будет оценена заранее. Спасибо