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.
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.