Frequently Ask Question
From JMangoWiki
JMango Application Script
Is the mobile transaction via JMango encrypted at all?
Question
For example, if we want a user to enter sensitive information like a credit card number how secure are the return transmissions?
Answer
Data transaction between mobile client and JMango backend is 3DES encrypted over Mobile Internet Data trasaction between JMango backend and your system can be set up via HTTPS instead of HTTP thus secures end to end transaction with 3DES encryption again. Just simply use https:// for the URL address.
My test script currently says that it requires 5 messages to be sent....
Question
Does this means it sends 5 text messages to send it? Or is the compiled version less than 1?
Answer
This estimation is based on if all the script data is transmitted via SMS thus the 5 text messages. However, the system compares this count with the maximum SMS number set in the corresponding application. If the size is greater than what's set for the application, only one SMS message sent out. Otherwise there will be all SMS messages sent out. I always set the maximum SMS number for the application as 1. It's way cheaper for mobile internet nowadays compared to SMS.
What is the difference between the "Send SMS" and "Send Script" commands on the "Compile and Send J-Mango Application" screen?
Answer
Send SMS means sending the content of the script text area as plaintext SMS so the system doesn't inteprete the text you enter in the text box as JMango application script This is corresponding to two different webservice methods outline in our JMango wiki site:
sendText: http://www.jmango.com.au/jmangowiki/index.php/JMango_Webservice_Documentation#sendText compileAndSendApplication: http://www.jmango.com.au/jmangowiki/index.php/JMango_Webservice_Documentation#compileAndSendApplication
Is there any way to store scripts on the mobile phone for later use and how do users generally get access to the scripts?
Answer
Use the command STORE_SCRIPT "Title" in the first line of your script. This script will get saved in the Application Inbox once opened. When your script finished with EXIT SCRIPT command, the Application Inbox is shown with all the scripts stored in the inbox.
Is it possible to generate scripts on the fly?
Question
For example, if I wanted an application that retrieved data from a database and created various screens with SELECT…ITEM options on them based upon values in a database how would I do this?
Answer
JMango script have a mechanism to generate items in a Select menu via server side retrieval, this is achieved via used of VAR command and SELECT with item replacement. We have a sample of this for taxi booking where as user enter a partial address, the server validates and present list of possible addresses Have a look at this sample script, tries to download to your phone and test.
http://aol.j-mango.com/taxi/script.txt
Where it says validate address the routine is like this:
VAR "validAddr" "NA" http://test.j-mango.com/address.txt?str=$fromStr&strType=$fromStrType&sub=$fromSub "Validating pick up address" IF "validAddr" == "NA" VALID_FROM_ADDRESS SELECT "fromAddress" "Matched pickup addresses" ITEM "$validAddr" CLEAR_VAR "validAddr"
The 3rd and 4th parameters of the VAR command are optional, if they are present, the client tries to fetch the textual content from the corresponding URL (3rd parameter) via GET method developers can put in the parameter values to the GET URL string (make sure there is no spaces in it). The 4th parameter is the text to be displayed while the value is being retrieved.
AS you can see, the reponse data from the above sample URL is a delimited string using | character Client expects plain text HTTP response so make sure Content Type is set to text/plain accordingly.
Fabian Court Maribyrnong|Fabian Road Melbourne|Fabian Street A Suburb
This variable value can then be used in the SELECT command as per below
SELECT "fromAddress" "Matched pickup addresses" ITEM "$validAddr"
SELECT command automatically realises that the variable data is of type array as per delimited string and shows all the items in the menu. Make sure there are at least two string tokens in the delimited string.
You can also follow this syntax - ITEM <item name> - by providing both a value and a key in your return data by returning the value/key pair delimted by a comma as per belowFabian Court Maribyrnong,1|Fabian Road Melbourne,2|Fabian Street A Suburb,3
This way you can use the key in other commands - VAR calls to a Url for example - without having to worry about encoding the contents of the Url.
Mobile Internet Setup
GPRS settings
This page have a good collections of APN, username and password for all GSM generation 2.5 onwards across a number of countries All networks
GPRS setting for Vodafone Live
- Proxy IP Address: 10.202.2.60
- Proxy Port: 8080
- APN: live.vodafone.com
- Login ID: blank
- Password: blank
GPRS setting for Telstra GPRS
- Proxy IP Address: 10.1.1.81
- Proxy Port: 80
- APN: telstra.wap.mnc001.mcc505.gprs
- Login ID: blank
- Password: blank
How do I check GPRS setting on Samsung D500 phone
Select Browser --> Current proxy And select the profile for your network.
