Skip to content

[Request]: In share_plus, make it possible to pass excludedActivityTypes to iOS #3075

Open

Description

@felix-barz-brickmakers

Plugin

share_plus

Use case

In Order to fullfill the MASVS-PLATFORM-1 requirement, one should, according to MASTG-TEST-0071 ensure that when sharing is used, only desired activity types are allowed.

For native iOS, this is done by adding the excluded ActivityTypes to UIActivityViewController.excludedActivityTypes before presenting the controller. However, the share_plus plugin currently does not allow to pass this information to the native implementation.

Proposal

I would propose to introduce a new optional named parameter iosExcludedActivityTypes that takes a nullable list of a dart-mapped ActivityTypes enum. This parameter can then be passed to the iOS implementation and be used there to populate the UIActivityViewController.excludedActivityTypes. It would be a simple, non breaking change.

Activity

  1. changed the title [-][Request]: Make it possible to pass `excludedActivityTypes` for iOS[/-] [+][Request]: In share_plus, make it possible to pass `excludedActivityTypes` to iOS[/+] on Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions