How to auto launch an application in kiosk mode without using Single App Mode

Solved

Hello,

I need to create a profile with a kiosk that launches an application every 30 seconds.

I can't use single app mode because I want to keep the option of accessing the desktop to type the authentication password to switch to admin mode.

I've tried using a scheduled task that runs every minute with a script that launches my application.
But this causes excessive data consumption.

Is there a better way of doing this?

Thanks for your support

Producer: Konrow

Model: SOFT5

OS: Android 11

Enrollment type: ANDROID ENTERPRISE - Work Managed Device

MobiControl version: 15.6.1.1048

Agent version: 15.4.6.1013

2 years ago
SOTI MobiControl
ANSWERS
RC
Raymond Chan Diamond Contributor
2 years ago

I can't see why using a scheduled task every minute will cause excessive data consumption.  But launching an app every 30 seconds will  likely drain the device battery very soon.

Please clarify your use case.

What exactly is your application going to do within the 30 seconds after it is launched?  Will it exit/terminate  within seconds (i.e. much shorter than the 30-second re-launch interval)?

RS
Rafael Schäfer
2 years ago

You still can enter admin mode even if device is in single app mode. Yes, it's a somehow bad solution to draw that ^ on the screen to get the prompt but works.

But in anyway Raymonds question matters, so please tell us why you think to need to do such task.

G
Gabriel
2 years ago

Hello ,

"You still can enter admin mode even if device is in single app mode. Yes, it's a somehow bad solution to draw that ^ on the screen to get the prompt but works."

> I don't understand if I press the back button when the application is launched nothing happens, but it works when we are on the kiosk screen (the prompt Actions with administrator appears).

How can i draw that ^ on the screen ?

"What exactly is your application going to do within the 30 seconds after it is launched?  Will it exit/terminate  within seconds (i.e. much shorter than the 30-second re-launch interval)?"

I just need the application to be running all the time.
These devices are completely dedicated to this application. The user sometimes doesn't even bother to relaunch the application, by clicking the item (and says it doesn't work).

Nothing will happen after 30 seconds if the application is launched. I just need the delay to be short so that the user waits.
This application can crash from time to time if the network reception is poor, so it saves us a lot of trouble.

RC
Raymond Chan Diamond Contributor
2 years ago
RS
Rafael Schäfer
2 years ago

In this article is also a video to show it maybe a bit better:

https://discussions.soti.net/articles/administrator-mode-gesture-on-single-app-mode-is-too-complex

G
Gabriel
2 years ago

thank you both for this tip which I didn't know.

Unfortunately, I'm still trying to improve my kiosk in single app mode, as it still hasn't convinced my management.

Thanks for your help

G
Gabriel
2 years ago

Hello again, 

The solution of drawing a ^ to access the parameters (admin mode) is unfortunately not possible in my use case.

My problem remains unsolved.
My application has to launch at startup and relaunch if closed.
But we also need to have a way of accessing the terminal settings if it's off the network.

> Kiosk with single app mode : launch/relaunch application OK
- but no acces to admin mode
> Kiosk without single app mode : launch application at start OK  acces to admin mode OK 
- Application is not relaunched if closed

Do you have any idea about the best way to do this ?

Thanks for your help

ZC
Zafer Cigdem
2 years ago

Hi Gabriel,

To activate admin password screen on the lockdown for entering the admin password and then enable admin mode, you can use "intents". You can either use a legacy script to send the intent or you can create as a lockdown item, and put it on the lockdown screen. Whenever this  lockdown item is clicked/hit you can see the revert to admin mode screen that you can enter the admin password. You can see similar post here for using it on the lockdown screen. SOTI Discussion Forum
If you wish to send it via a legacy script it is like below:

sendintent -a "intent:#Intent;action=net.soti.mobicontrol.admin.PASSWORD_DIALOG;i.dialog_type=1;end"

 

 

I hope it helps. Thank you

Zafer

 

G
Gabriel
2 years ago

Hello Zafer,

Thanks for your help.

So my idea is to keep Lockdown in Single app mode so that the app launches all the time.
If the device has a network 
> unlock the kiosk via the console

IF the device has no network
 > add : "Out of contact" to the profile configuration

If device has been off-line for X minutes script execution :

sendintent -a "intent:#Intent;action=net.soti.mobicontrol.admin.PASSWORD_DIALOG;i.dialog_type=1;end"
sleep 300
reset /s

So we got 5 minuts to type the admin password and check in parameters whats wrong with the device, after this time the device reboot.

I m currently testing if it works

Regards

ZC
Zafer Cigdem
2 years ago

Hello Gabriel,

It sounds good, you may test it out. I think you'd set it on the periodic settings for regular let's says for every 5 minutes to run if the device if offline, right?

I hope it helps, otherwise please let us know and we may think different ways with our best. Thank you

Zafer

G
Gabriel
2 years ago

Hello again,


I'd prefer to avoid scheduled tasks because the devices are equipped with SIM cards with limited data capacity.
And use only OUT OF CONTACT

The script seems to work as it should with this syntax:
sendintent -a "intent:#Intent;action=net.soti.mobicontrol.admin.PASSWORD_DIALOG;i.dialog_type=1;end"
reset /delay 10

I'm continuing the tests 

Regards

ZC
Zafer Cigdem
2 years ago

Sorry, I just saw that I uploaded wrong screenshot above, it should be Out of Contact (OOO) payload screenshot that you mentioned below.

For example, regarding the below it is executed when the device is offline for more than 10 minutes, and execute the action every 5 minutes until the device comes back online:
 
G
Gabriel
2 years ago

It's working, thanks for the support

Regards

Solution
J
JEMOD@SOTI
2 years ago

Hi Gabriel,

Thank you for posting on SOTI Pulse! 

I am glad to see that your issue was resolved. 

Please feel free to reach out to us if you have any further questions in the future.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net lDiscussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter