Skip to content

[android_intent] Plugin should gain a "canResolve" method #51942

@ened

Description

@ened

Use case

Intents are also used to check for certain phone functionality and the general environment of the App when installed on an Android phone.

A more prominent example is how a App developer can detect if the phone supports a battery optimisation configuration as it's being practiced by some manufacturers.

This is highlighted in this issue: https://stackoverflow.com/a/48641229/375209. Here, the availability of a specific intent guides the developer to the correct User interface (in most cases a dialog), but can also inform on what else to show to guide the end user to the correct steps.

Proposal

An extension of the android_intent plugin, so that the AndroidIntent class provides support for a Future<bool> canResolve() method. This will simply return true or false accordingly.

I need this functionality now & thus will start working on it. If anyone would like to provide suggestions o feedback, please feel free to add it here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityp: android_intentPlugin to execute Android intentspackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions