使用离子型框架处理接收到的短信 [英] handle received sms using ionic framework

查看:276
本文介绍了使用离子型框架处理接收到的短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法使用离子型框架来处理收到的短信?综观ngCordova的文件,特别是$ cordovaSms,它表明一个方法来发送短信,但没有进行处理收到的短信。我要的是一个方法来通知我的应用程序,如果有来电的短信,并立即对其进行处理。

Is there a way to handle received SMS using the ionic framework? Looking at the documentation of ngCordova, specifically $cordovaSms, it indicates a way to send an SMS but none for handling received SMS. What I want is a way to notify my app if there is an incoming SMS and process it immediately.

感谢

推荐答案

我瘦k如果添加此插件可以

I thin k if you add this Plugin it is possible

https://github.com/floatinghotpot/cordova-plugin-sms

它有一个onSMSArrive事件

It has an "onSMSArrive" Event

这篇关于使用离子型框架处理接收到的短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆