Android lockdown delayed application startup

Android lockdown delayed application startup

Hi.

 

In our environment we have clients connected both wired and wireless.

We use lockdown to launch automatically on start-up in single app mode the Ivanti Velocity Web browser.

Everything is working fine on wired clients while on wireless ones the page is blank because the application is started when the network is still absent, so the user has to manually refresh screen.

 

Is it possible to set a delay or set the application to start after the presence of the network connection?

 

Mobicontrol Version is:

 

Thanks and regards

 

Roberto

11 Answers

Order By:   Standard | Newest | Votes
DDMOD@SOTI | posted this 21 April 2020

Hi Enrico,

 

Thanks for posting your query!

How did you setup the WiFi configurations on the device? Did you do it manually or pushed it as a profile to those devices?

If not, please try to push the WiFi Configurations profile to the device, so that when the device start-up it will connect to the WiFi signal and then proceed with the lockdown mode.

 

Regards,

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0
Enrico Rossi Ferrari | posted this 21 April 2020

Hi,.

 

The connection parameters are distributed through a dedicated profile.

 

The issue occurs because at the startup the browser is opened when the wireless connection is not yet established.

 

Thanks

  • 0
  • 0
DDMOD@SOTI | posted this 21 April 2020

Hi Enrico,

 

How is that application pushed to the device? Is it via package? If so, did you check mark "Automatically Run Activity" while creating the PCG file in MobiControl-Package studio?

 

 

Regards,

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0
Raymond Chan | posted this 21 April 2020

Maybe you can try using a script ://  item in your single-item kiosk, and the script include a worst-case delay needed for Wifi connection set-up,  followed by a "start" script command to run the  browser app.

 

A smarter script using the new javascript engine should be able to give better result if more features on getting device status are added in the future.  

  • 1
  • 0
Enrico Rossi Ferrari | posted this 22 April 2020

Thank you all for the help.

 

The application is pushed trough a package.

 

I had taken a look at the syntax of the android scripts but I had not found the delay field except for the reset command.

 

I will give a try to the new javascript engine if there are parameters suitable to my problem.

  • 0
  • 0
Raymond Chan | posted this 22 April 2020

Just use 

    sleep  N  

in your script to create a fixed N-second delay.  

It should be followed by 

   start    YourBrowser_BundleID

to run your browser after the delay.

 

 

  • 0
  • 0
Enrico Rossi Ferrari | posted this 22 April 2020

I tried these two commands in sequence through the SEND SCRIPT UTILITY

 

sleep 5
start com.wavelink.velocity

 

 

Nothing happens. I have to reset the device to be able to send script again.

Only the second command works without the delay part and it is almost immediately.
 
Thanks
 
 
  • 0
  • 0
Raymond Chan | posted this 22 April 2020

You of course can't notice the delay with the way you tested it interactively with a send script action.

Try again by adding the line

    showmessagebox "abc"  5

before "sleep 20" to see the 20-second delay before the app is started.

 

Fot actual use in kiosk, put the 2-line script in a file with extension .cmd  on the device, and  use script://   instead of launch://  in your kiosk item.

 

 

  • 2
  • 1
Enrico Rossi Ferrari | posted this 23 April 2020

Thank you very much for your help.

 

The startup script in lockdown works perfectly as well as the modified version in send script action.

 

Problem solved.
  • 0
  • 0
DDMOD@SOTI | posted this 24 April 2020

Hi Enrico,

 

Thank you for advising us that your post has been solutioned. Please let us know what reply you found to assist you in solving your inquiry so others may benefit from this information by selecting "is solution".

 

Regards,

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0
Enrico Rossi Ferrari | posted this 28 April 2020

Done.

  • 2
  • 0

Give us your feedback
Give us your feedback
Feedback