openExternalBrowser
Description
Open a website using the default browser specified by the user
Parameters
Param | Data type | Required | Description |
---|---|---|---|
url | string | Yes | Link to desired website |
Return Value
N/A
Error Code
Error Code | Description |
---|---|
050401 | Invalid url |
Sample Code and Sample Return Data
Sample Request:
window.zlpSdk.Navigator
.openExternalBrowser({ url: "https://zalopay.vn/" })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));
Sample Response:
{ data: {}, status: "success" }