Launch SOTI surf from script on device

Launch SOTI surf from script on device

I'm trying to launch SOTI surf from a script on the device. Device is a Datalogic Memor 10. I'm needing to use an intent to change scanner settings then launch SOTI surf directly to a webpage with top and bottom hidden.

 

I can do something like 'start net.soti.surf' in the script but am not sure, and can't find, how to start on a certain webpage. I'm sure it's something simple but thought I'd ask the question instead of spending an hour doing trial and error.

  • 28 February 2020
  • SOTI surf
  • 8 Answers
  • 0 Upvote
  • 1 Follower
  • 2.1K Views
    • 8 Answers
    • 0 Upvote
    • 1 Follower

8 Answers

Order By:   Standard | Newest | Votes
Michael Hancock | posted this 03 March 2020

Sweet! That's exactly what I was looking for! Thanks!

  • 0
  • 0
Edgar Gomez | posted this 03 March 2020

Hello

Perhaps the following script may help you:

sendintent -a "intent://URL#Intent;scheme=https;action=android.intent.action.VIEW;component=net.soti.surf;end"

  • 2
  • 0
Michael Hancock | posted this 28 February 2020

Cool that works pretty well.

 

Side question related to that: That intent prompts the user to choose a browser. Is there a way to force choose that browser perhaps through an intent? We've got about a hundred of these in the field and I'd rather not have users in Chrome if I can avoid it.

  • 0
  • 0
Matt Dermody | posted this 28 February 2020

That's easy. You can restrict SOTI Surf so that the URL bar is not displayed. If full screen is the primary reason for using SOTI Surf then you can just use the intent call within your script to launch the full screen webview directly to whatever site you are accessing. 

  • 1
  • 0
Michael Hancock | posted this 28 February 2020

I'd like the lock screen to have links to the most commonly used webapps, but that's not really a requirement. The big thing for us is to keep the users in work apps on the device. Because of this we don't want them being able to enter a url.

  • 0
  • 0
Matt Dermody | posted this 28 February 2020

Do you need to launch into different URLs in SOTI surf or just one? You could set your Surf homepage to a specific URL or add the catalog view in Surf to offer multiple shortcuts within the context of that app.

 

Alternative to Surf you can open a webview to a specific URL with an Intent. Not sure if you can launch Surf and pass through a URL in the same way. Perhaps you could observe the ADB logcat view when the surf:// launch option is being used to see how the Agent is launching the browser?

 

sendintent -a https://google.com;action=android.intent.action.VIEW;end

  • 0
  • 0
Michael Hancock | posted this 28 February 2020

Yeah using lockdown but having to run a script on the device to change scanner settings (Datalogic don't do mulitple scanner profiles like Zebra...) so doing script:// to run it, and that's the snag.

Here's the script as it is now:

sendIntent -b "intent:#Intent;component=com.datalogic.dxu/.plugin.EnterpriseReceiver;action=com.datalogic.dxu.action.APPLY_SETTINGS;S.path=/sdcard/ScannerSettings.dxu;end;"
sleep 2
start net.soti.surf

  • 0
  • 0
Matt Dermody | posted this 28 February 2020

Are you using the SOTI Lockdown? You can just use surf:// in order to launch into a specific website. 

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback