Phone

You can use the Application Manager's launch or open methods to bring up the Phone application to the dial pad with an optional pre-populated phone number. The user taps the dial button to confirm the phone call. Apps cannot complete a call without user assistance.

The open method brings up the phone dialer in a new card, pre-populating it with the contents of the target URL. The launch method brings up the phone dialer in a new card, without pre-populating the dial string.

Parameters

Parameter Type Description
target string URL of the from "tel://dialstring", where dialstring is part or all of a phone number. The number can contain pause and wait characters to indicate that DTMF tones should be sent after the call connects.
  • On CDMA, t pauses for 2.5 sec. before sending the DTMF tones following it; p waits for the user to tap a button before sending the tones.
    For example: tel://4155554242t23p99 dials 415-555-4242, pauses for 2.5 sec., sends the DTMF tones 2-3, waits for the user to tap the screen, and then sends 9-9.
  • On GSM, p pauses for 2.5 sec., and w waits for user input.

Required for open method
id string Set to "com.palm.app.phone". Required for launch method

Examples

luna-send launch

luna-send -n 1  luna://com.palm.applicationManager/launch '{"id":"com.palm.app.phone"}'
{ "returnValue": true, "processId": "success" }
luna-send open
luna-send -n 1  luna://com.palm.applicationManager/open '{"target":"tel://4085551234"}'
{ "processId": "success", "returnValue": true }

Mojo open

this.controller.serviceRequest('palm://com.palm.applicationManager', {
    method:'open',
    parameters: {
        "target": "tel://4085551234"
    }
});

Mojo launch

this.controller.serviceRequest('palm://com.palm.applicationManager', {
    method:'launch',
    parameters: {
        "id":"com.palm.app.phone"
    }
}); 

Sample Code

See the SDK Services Sample.