当前位置:网站首页>Uniapp - make phone calls and send text messages
Uniapp - make phone calls and send text messages
2022-07-28 03:18:00 【A walking sheep】
1. Make a phone call
uni.makePhoneCall({
phoneNumber: "13666666666",
success() {
console.log(" Dial successfully ")
},
fail() {
console.log(" Call failed ")
}
})
2. Send a text message
let msg = plus.messaging.createMessage(plus.messaging.TYPE_SMS)
msg.to = ['13666666666']
msg.body = 'Hello'
plus.messaging.sendMessage(msg)
【 Authority selection 】

边栏推荐
- 数据湖:各模块组件
- Full of dry goods, hurry in!!! Easy to master functions in C language
- CAD creation group is not combined?
- Comprehensive case
- Promise object
- 上位机与MES对接的几种方式
- C#WinForm开发:如何将图片添加到项目资源文件(Resources)中
- 【2022 牛客第二场J题 Link with Arithmetic Progression】三分套三分/三分极值/线性方程拟合最小二乘法
- My approval of OA project (meeting inquiry & meeting signature)
- 嵌入式开发:提示和技巧——用C进行防御性编程的最佳实践
猜你喜欢

Data Lake (XVII): Flink and iceberg integrate datastream API operations

Design of the multi live architecture in different places of the king glory mall

Intelligent industrial design software company Tianfu C round financing of hundreds of millions of yuan

Kubernetes -- Introduction

Industry insight | is speech recognition really beyond human ears?

意外收获史诗级分布式资源,从基础到进阶都干货满满,大佬就是强!

Promise object

C#实现弹出一个对话框的同时,后面的form不可用

RBD块存储设备的扩容以及缩容操作(六)

Summary of static blog building tools
随机推荐
Where do I go to open an account for stock speculation? Is it safe to open an account on my mobile phone
JVM 内存布局详解,图文并茂,写得太好了!
[email protected] Annotation usage
随机森林与集成方法学习笔记
C#实现弹出一个对话框的同时,后面的form不可用
What kind of job is social phobia suitable for? Can you do we media?
数据湖(十七):Flink与Iceberg整合DataStream API操作
汇总了50多场面试,4-6月面经笔记和详解(含核心考点及6家大厂)
【下载文件】uniapp开发小程序,下载文件并保存到本地
并发编程面试题总结
谈一谈百度 科大讯飞 云知声的语音合成功能
数据湖:各模块组件
Engineering Geology Practice - engineering geology problem set
Data Lake: each module component
方案分享 | 高手云集 共同探索重口音AI语音识别
[2022 Niuke multi school 2 K link with bracket sequence I] bracket linear DP
Yiwen teaches you to distinguish between continuous integration, continuous delivery and continuous deployment
GAMES101复习:光线追踪(Ray Tracing)
els 定时器
基于JSP&Servlet实现的众筹平台系统