Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes
How to send an intent to the app by the runApp push command?
ago by (44.2k points)

1 Answer

0 votes

You can send an intent (for example, android.intent.action.VIEW) to the app by the runApp command.

The JSON payload will look like this:

{

    pkg: "app.package.id", 

    action: "intent.action", 

    data: "optional-data", 

    extra: {

    extra1: value1,

    extra2: value2

    }

}

All arguments are optional. Extras can be string, integer, or boolean.

Example:

{

    pkg: "com.android.chrome", 

    action: "android.intent.action.VIEW", 

    data: "https://h-mdm.com"

}

This intent will display the webpage https://h-mdm.com in the Chrome browser.

ago by (44.2k points)
...