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