Viewing the Mobile Application

The application mDesign produces is essentially an HTML5 website.

It can be viewed either with a browser, or with the mDesign shell on a mobile device.

Testing in Browser
When you test an Application in mDesign studio it builds the application the loads the Chrome as the browser.

To view mDesign apps in a browser it need to be started with certain parameters so it models a mobile device. You can start it by using the script below:

$/Unity Mental health/Mobile/mDesignUtilities/StartChrome @echo on REM COMMAND TO RUN ON YOUR PC SET browser=chrome.exe REM DIFFERENT AGENTS - PICK ONE SET androidshell=Mozilla/5.0 (Linux; U; Android 2.1-update1; en-us; Stream Build/ECLAIR) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/6533.18.5 CTShell/1.0 SET agent="%androidshell%" REM DIFFERENT URLs - PICK ONE SET local=http://tfs.silverlinksoftware.com:616/mdesign/0/procs/index.html SET url=%local% REM PICK THIS START FOR ANDROID SHELL START "mDesign" "%browser%" --user-agent=%agent% --incognito --disk-cache-size=10000000 %url%?X-mDesign-Client=AndroidPhoneGap^&X-mDesign-Client-Version=7.0.0.6 exit

Just change the URL to the correct server

Testing on Device
Only published Applications can be tested on Device

For you need to install the mDesign shell on the device.

For Android you can find the shell at C:\Program Files (x86)\CommonTime\mDesign\Client\Android

Just copy the apk file to your device and install it

For iOS the process is more complex as you need version of the shell signed by your organisation (this requires an Apple Developer Id).

Once a shell is on your device set the Url in the settings to point to your server.