Nhảy tới nội dung

requestUpdateZalo

Bắt đầu hỗ trợ ở phiên bản:

  • SDK: 2.19.3
Lưu ý

Cần xin cấp quyền tại trang Quản lý ứng dụng

Chủ động điều hướng người dùng tới AppStore/CH Play để cập nhật phiên bản Zalo mới nhất.

Parameters​

Object object​

PropertyTypeDefaultRequiredDescriptionMinimum Version
successfunctionCallback function khi gọi api thành công
failfunctionCallback function khi gọi api thất bại

Sample Code​

import { requestUpdateZalo } from "zmp-sdk/apis";

requestUpdateZalo({
success: (res) => {
// xử lý khi gọi api thành công
},
fail: (error) => {
// xử lý khi gọi api thất bại
console.log(error);
}
});

Hoặc

import { requestUpdateZalo } from "zmp-sdk/apis";
const updateZalo = async () => {
try {
await requestUpdateZalo({});
} catch (error) {
// xử lý khi gọi api thất bại
console.log(error);
}
};