Content-Length: 268913 | pFad | http://github.com/flutter/flutter/issues/171809

29 [ios][scene delegate] is state restoration still working with scene delegate? · Issue #171809 · flutter/flutter · GitHub
Skip to content

[ios][scene delegate] is state restoration still working with scene delegate? #171809

@hellohuanlin

Description

@hellohuanlin

Use case

I came across these functions in FlutterAppDelegate.mm:

- (BOOL)application:(UIApplication*)application shouldSaveApplicationState:(NSCoder*)coder {
  [coder encodeInt64:self.lastAppModificationTime forKey:kRestorationStateAppModificationKey];
  return YES;
}

These APIs are also deprecated, and we should check if they are still working after adopting SceneDelegate.

Unlike other APIs, the new state restoration API seems to be a non-trivial change: https://developer.apple.com/documentation/uikit/restoring-your-app-s-state

CC @gaaclarke @vashworth

Proposal

  1. Double check if the existing state restoration still works after adopting scene delegate
  2. Migrate to SceneDelegate APIs

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/flutter/flutter/issues/171809

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy