在iOS中检测带有特定文本的传入短信 [英] Detect incoming SMS with specific text in iOS

查看:77
本文介绍了在iOS中检测带有特定文本的传入短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果此短信包含特定消息,如何检测收到的短信并将短信发送到启动我的应用程序的号码.请建议我如何检测在我的应用程序未运行时收到的新消息.

How to detect received SMS and send SMS to that number launching my app if this sms contain specific message . Please suggest how i detect that a new messaqge received while my app is not running .

推荐答案

简单的答案是它不可能在iOS设备(非越狱)你无法获得任何数据短信或电话,所以最好的方法是停止与之抗争.不确定,但可以通过越狱设备实现.

Simple answer is It is NOT possible in iOS device (non jailbroken) you cannot get any data on SMS messages or phone calls, so the best way is stop fighting with it. Not sure but it may achieve by jailbroken device.

Apple 表示 - 在 iPhone OS 4.0 及更高版本中,您可以从应用程序内发送文本消息.此功能严格用于发送消息.收到的 SMS 消息会转到内置的消息"应用.

Apple said - In iPhone OS 4.0 and later, you can send text messages from within your application. This feature is strictly for sending messages. Incoming SMS messages go to the built-in Messages app.

这篇关于在iOS中检测带有特定文本的传入短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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