使用如下方法:
call.makeCall('400 666 5969',(err: BusinessError) => {
if (err) {
console.error(`makeCall fail, err->${JSON.stringify(err)}`);
} else {
console.log(`makeCall success`);
}
})
报错文本:
'makeCall' can't support crossplatform application
call.makeCall方法是HarmonyOS 独有方法,可以参考下面链接进行代码差异化适配。
https://gitee.com/arkui-x/docs/blob/master/zh-cn/application-dev/quick-start/platform-different-introduction.md