From e6328f84b1106db7c83fc0110ab560cf9d203c63 Mon Sep 17 00:00:00 2001 From: Akira Date: Sun, 8 Sep 2024 19:28:08 +0900 Subject: [PATCH] Fix iOS background issue --- ios/Runner/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index 58379ca..a0372ee 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -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