Issue
What is the main difference between await getTemporaryDirectory();
and await getApplicationSupportDirectory()
with Flutter Path provider package.
Solution
It is mentioned that what is the underlying calls made for the function:
getTemporaryDirectory , getApplicationSupportDirectory
Considering the example of Android, the path returned by both methods should be used for storing the app-related data.
But there is a minor difference that for the files inside the path returned by getTemporaryDirectory
, the system will automatically delete files in this directory as disk space is needed elsewhere on the device. The system will always delete older files first, based on the lastModifiedTime.
Storage permission won't be required for both the methods.
Answered By - Aman Verma
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.