Skip to content

Get AppGroup container path from path_provider #117685

Closed
flutter/packages
#3450

Description

@leighajarett

Use case

When you use an app extension with Flutter iOS apps, you'll likely want to pass information through an AppGroup. When using an AppGroup, files can be saved to a shared container between the extension and the app itself. However, you currently need to use a method channel to get the path to the container (with this API call).

Proposal

It would be great to add this to the path_provider plugin. So you can do something like the following:

Directory myFilePath = await getContainerPath("my_app_group");

Activity

  1. added
    P3Issues that are less important to the Flutter project
    on Jan 3, 2023
  2. stuartmorgan-g commented on Jan 3, 2023

    @stuartmorgan-g
    Contributor

    For this API, we should use the new style of adding platform-specific APIs in the platform package (so, a new public method in path_provide_ios/path_provider_macos) instead of the legacy approach of adding APIs that are fundamentally platform-specific to the app-facing package.

    We probably want to merge path_provider_ios and path_provider_macos into a shared Swift implementation (which is something we've already discussed doing now that 1P iOS plugins can be Swift-based) first so we only have to add it in one place.

  3. self-assigned this
    on Jan 31, 2023
  4. github-actions commented on Mar 30, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectp: path_providerPlugin that provides resolved paths to some platform directoriespackageflutter/packages repository. See also p: labels.platform-iosiOS applications specifically

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions