
Originally Posted by
dhomann
I'm using the com.nokia.device.messaging.start_editor API to start the SMS editor with pre-populated message data. start_editor fails silently, if the message argument has no non-empty "to" value. Shouldn't all message parameters be optional, except for "type"?
var message = {
type: 'SMS',
body: 'Hello'
};
var messaging = com.nokia.device.load("", "com.nokia.device.messaging", "");
messaging.startEditor(message); // nothing happens, not even an error
message.to = '...'; // insert a real phone number
messaging.startEditor(message); // now it works
Dennis