1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] How to store config file outside app sandbox in macOS?

Discussão em 'Mobile' iniciado por Stack, Novembro 13, 2024.

  1. Stack

    Stack Membro Participativo

    I want my app to retain configuration settings after updates. To achieve this, I need to store the config file outside the app sandbox, as the sandbox is deleted and recreated with each update. I am using flutter to make this app.

    I tried to use

    Directory libraryDir = await getLibraryDirectory();

    But this will return the library folder inside the sandbox. Also, the document folder.

    It will return the path such as /Users/caodingjie/Library/Containers/top.bugsmachine.iSearcher/Data/Library/iSearcher

    How to store files in /Users/caodingjie/Library/iSearcher ?

    Or, is there any other ways to achieve this?

    Continue reading...

Compartilhe esta Página