Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on iOS #11

Open
RawadZogheib opened this issue Oct 27, 2024 · 5 comments
Open

Crash on iOS #11

RawadZogheib opened this issue Oct 27, 2024 · 5 comments

Comments

@RawadZogheib
Copy link

On IOS it's crashing instead of restart, any solution?

@alexmercerind
Copy link
Member

Have you modified the code as mentioned in README?

@RawadZogheib
Copy link
Author

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)
  }
}

@RawadZogheib
Copy link
Author

RawadZogheib commented Oct 27, 2024

@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.

@abdoul-kader1
Copy link

My ios application remains on a blank page

@alexmercerind
Copy link
Member

Can you please share a minimal sample?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants