What intent is sent to the application to launch from the Profile?

What intent is sent to the application to launch from the Profile?

Hi,

 

Can you tell me what intent is sent to the application when the box "Automatically Run Activity after Install" is checked when building a profile using MCStudio? 

 

3 Answers

Order By:   Standard | Newest | Votes
JVMOD@SOTI | posted this 17 March 2020

Hello Josh Bradley,

 

Thank you for your post, please elaborate your question.

 

Regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

  • 0
  • 0
Josh Bradley | posted this 17 March 2020

Hi,

 

We're building an application that we only what to run once and this will be when the application is installed.

To do this, we're going to limit the application to only work when it receives the intent from MobiControl after the Profile has been installed.

To do this, I need to know what intent is sent to the application when it "Automatically Run Activity after Install"

 

Thanks 

Josh. 

  • 0
  • 0
Raymond Chan | posted this 19 March 2020

What make you think that an intent is sent to the app installed if the option you mentioned is selected.  Is your program a normal app or a background sevice?   If you plan to implement an Android intent in your code, you define what the intent is, and you include MobiControl "sendintent" script command to your installed app based on the intent you have implemented.

 

If you want to run the installed app/service right after its installation, instead of using the option you mentioned,  you might also try using in the pcg post-install script a "start bundle_ID" script command to run it, followed by a "sendintent" script command to initiate some specific function(s).  It should work, though I haven't tried anything similar in the past.

 

  • 1
  • 0

Give us your feedback
Give us your feedback
Feedback