6

Is there way in flutter to save the files locally on a iPhone so that those files will available in Files App?

0

3 Answers 3

4

I added the following to info.plist and my app now show in Files:

<key>UISupportsDocumentBrowser</key>
<true/>
Sign up to request clarification or add additional context in comments.

Comments

3

Yes it is actually possible. Just open the info.plist file and add the key "UIFileSharingEnabled" and set it to YES. Then you're done.

Comments

-1

There's a dedicated article in the Flutter cookbook extensively explaining how to read and write files to disk using the path_provider_plugin and dart.io library.

2 Comments

by path_provider you can only store data in Documents(NSDocumentDirectory for ios) and Temporary directory and getExternalStorageDirectory will not work on ios
Thanks for the reply Mazin, I could able to create file under applications directory however in ios it's not visible under Files Application. I want a way to show a file saved by my application in Files app so that user can export/share it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.