Skip to content

[quick_actions] Add getMaxShortcutCount method for iOS and Android. #134351

@Anishishi

Description

@Anishishi

Is there an existing issue for this?

Use case

In quick_actions package, there is no method to getMaxShortcutCount.

Android.
You can get that count by calling getMaxShortcutCountPerActivity.
https://developer.android.com/reference/androidx/core/content/pm/ShortcutManagerCompat#getMaxShortcutCountPerActivity(android.content.Context)

iOS
Maximum: 4

People tend to expect every app to provide at least one useful quick action; you can provide a total of four.

https://developer.apple.com/design/human-interface-guidelines/home-screen-quick-actions#Best-practices

Proposal

Implement getMaxShortcutCount method for each platform based on above things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectp: quick_actionsQuickActions pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions