openSMS
Supported Version
zpa
Started support in Zalopay App from version 8.26.0Description
Open device's SMS messaging application
Parameters
Param | Data type | Required | Description |
---|---|---|---|
phone | string | Yes | Target phone number |
message | string | No | Message content |
Return Value
N/A
Error Code
Error Code | Description |
---|---|
011301 | Cannot open SMS Messaging app |
Sample Code and Sample Return Data
Sample Request:
window.zlpSdk.Device
.openSMS({ phone: "012345678", message: "Hello" })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));
Sample Response:
{ data: {}, status: "success" }