Skip to content

Conversation

@onehumandev
Copy link

@onehumandev onehumandev commented Dec 2, 2025

feat: Add support for AppLibrary, AppTemp, and AppCache (#12276)

Previously, there was no access to 3 specific paths used by iOS.

We have added support for these directories, and added documentation
explaining how these different methods are meant to be used.

This also required the creation of a Swift plugin to allow us to access
these iOS APIs.

There was a thought that we would be able to add access to these directories
by setting a feature flag in the plugin and having conditional retrieval of
the needed directories.

However, this proved to be much more complex than needed, since in reality we are able to
make this a purely additive change, with the only changed output being for the appCacheDir method on iOS. In the related issue #12276 , it was stated this could be acceptable.

Comparisons of the returned values before and after these changes for both Android and iOS are
attached here.
Android comparison:
PostChangeResults-Android.csv

iOS comparison:
PostChangeResults-iOS.csv

In this process, we have added a page to the sample views to immediately
see the output of the different path methods.

This required some visual fixes of the examples/api app for the menu button
to be usable on modern Android devices to work with insets.)

…2276)

Previously, there was no access to 3 specific paths used by iOS.

We have added support for these directories, and added documentation
explaining how these different methods are meant to be used.

This also required the creation of a Swift plugin to allow us to access
these iOS APIs.

In this process, we have added a page to the sample views to immediately
see the output of the different path methods.

This required some visual fixes of the examples/api app for the menu button
to be usable on modern Android devices to work with insets.)feat: Add support for AppLibrary, AppTemp, and AppCache (tauri-apps#12276)

Previously, there was no access to 3 specific paths used by iOS.

We have added support for these directories, and added documentation
explaining how these different methods are meant to be used.

This also required the creation of a Swift plugin to allow us to access
these iOS APIs.

In this process, we have added a page to the sample views to immediately
see the output of the different path methods.

This required some visual fixes of the examples/api app for the menu button
to be usable on modern Android devices to work with insets.)
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Dec 2, 2025
///
/// Not supported on desktop, returns error.
pub fn app_documents_dir(&self) -> Result<PathBuf> {
Err(Error::UnknownPath)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't we want these methods to resolve (or fall back) on desktop? Otherwise we'd need to handle desktop/mobile paths separately in the application.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what a sensible fallback would be for these on Desktop implementations would be, since these may not have direct translations to MacOS and Windows apps.
Do you have any thoughts on what a reasonable fallback would be for these methods on desktop?

@onehumandev onehumandev changed the title feat: Add support for AppLibrary, AppTemp, and AppCache (#12276) feat: Add support for AppDocuments, AppLibrary and AppTemp (#12276) Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📬Proposal

Development

Successfully merging this pull request may close these issues.

2 participants