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