Fix iOS background issue
This commit is contained in:
@ -13,7 +13,7 @@ import CoreMotion
|
||||
//GeneratedPluginRegistrant.register(with: self)
|
||||
//return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
|
||||
let motionChannel = FlutterMethodChannel(name: "com.yourcompany.app/motion",
|
||||
let motionChannel = FlutterMethodChannel(name: "net.sumasen.gifunavi/motion",
|
||||
binaryMessenger: controller.binaryMessenger)
|
||||
motionChannel.setMethodCallHandler({
|
||||
[weak self] (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in
|
||||
|
||||
Reference in New Issue
Block a user