Messaging Javascript library

The Messaging class provides means to send an SMS or an MMS with a picture.


1.4.8

New methods: startListeningSMS(), stopListeningSMS(), isPushSMSAvailable (), registerPushSMS (), unregisterPushSMS () and isRegisteredPushSMS().


bool isAvailable ():
Returns True if mobile sending SMS and MMS is supported.

bool sendSMS (String phoneNumber, String message):
Send a SMS. Returns true if successful, false on error.

bool sendMMS (String phoneNumber, String subject, String message, String imageUrl):
Send a MMS.

bool startListeningSMS (int port, String messageName):
Waiting for incoming SMS on specified port through a Message node with url "messageName". The data_changed MFString field of the message node will be update as follow:

Since 1.4.8

bool stopListeningSMS (int port):
Stop waiting for incoming SMS on specified port.

bool isPushSMSAvailable ():
Check if memo player supports push SMS

bool registerPushSMS (int port):
Register a port to wake up midlet on incoming SMS on specified port.

bool unregisterPushSMS (int port):
Register previously registered port.

bool isRegisteredPushSMS (int port):
Check if specified port is already registered.


Example sending SMS


Example waiting incoming SMS