Skip to content

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

Open
@felix-barz-brickmakers

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.

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