HomeiOS Developmentios - AppDelegate.swift Overwriting Callback

ios – AppDelegate.swift Overwriting Callback


I’ve a flutter app that I’m making an attempt to implement register with Fb utilizing the directions right here. Every part works on Android, and all the pieces works on iOS till it wants the callback token, at which level it provides the error NoSuchMethodError: The getter 'token' was referred to as on null.. I imagine that is due tot he AppDelegate.swift overriding the following operate, however I have no idea tips on how to write swift code so I would like somewhat assist fixing this situation. If you happen to have a look at the underside of the directions, they point out this as a attainable situation, however I need assistance determining what to really have in my AppDelegate file.

Right here is my present AppDelegate.swift

import UIKit

import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func software(
    _ software: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GeneratedPluginRegistrant.register(with: self)
    return tremendous.software(software, didFinishLaunchingWithOptions: launchOptions)
  }
}

What precisely ought to this be rewritten to in order that it would not override the callback for the login operate? Or ought to I’ve a SceneDelegate.swift folder now? Fb’s doc is extremely unclear.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments