Matt how do you run a script and launch an application at the same time?
I actually heard more voices requesting Soti Surf to keep previous SURF session context in case the home key or other events cause temporary exit to the kiosk menu or other UI screen. Your requirements seem to be the opposite. This can be annoying as end-user might need to press many keys or authenticate again if he/she accidental pres the wrong key(s) that cause permanent exit from the Soti Surf session.
As I just found out that the "start" script command no longer works with Soti Surf on the latest v13.7.x device agent, I believe it is now more difficult to achieve what you want cleanly with one lockdown menu item. If you can tolerate having a second lockdown menu item that give the device end-user an option to clean up all cached data/history associated with Soti Surf, then it is possible to associate this second menu item with a script including the following
sendinfo net.soti.action.surf clearcache
which is much lighter than the "wipeapplicaiton" script command.
You could try clearing out the whole Android app cache with the wipeapplication script. If you use the SOTI lockdown you can create a shortcut to a script that calls wipeapplication and then starts the app. To the end user it will look like they're just launching Surf directly but it technically will be wiping the application before it launches.
Using kiosk to lock down the devices.
No AD/LDAP account
Clearing the cache would work but thats not really a solution as that requires manual intervention
i'm not an expert but have you got try to clear soti cache ?
click on device , and select clear soti cache
This can be quite tricky.
What are the version and build numbers of your MobiControl server and the device platform(s) (Android+, Android-Enterprise, iOS, Winodws, etc.) you are using?
Are you using kiosk/lockdown menu on your devices? And is there any authentication (e.g. AD/LDAP account) when accessing the lockdown or your Soti Surf?