Open RawadZogheib opened 3 weeks ago
Have you modified the code as mentioned in README?
yes
import UIKit
import Flutter
import restart
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
// --------------------------------------------------
RestartPlugin.generatedPluginRegistrantRegisterCallback = { [weak self] in
GeneratedPluginRegistrant.register(with: self!)
}
// --------------------------------------------------
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
@alexmercerind I user this plugin for a landscape game, on restart (when it doesn't crash) and I rotate my phone the game begin in portrait (Knowing that I have configured in the Info.pilst that it's a landscape app). This bug is only on IOS too.
My ios application remains on a blank page
Can you please share a minimal sample?
Hello @alexmercerind, any update about these 2 bugs on IOS?
On IOS it's crashing instead of restart, any solution?