简体   繁体   English

使用iOS中的特定文本检测传入的SMS

[英]Detect incoming SMS with specific text in 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 . 请建议我在我的应用程序未运行时如何检测到收到的新messaqge。

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. 答案很简单,这是不可能的iOS设备(非越狱),你不能得到的短信或电话的任何数据,所以最好的办法是停止与它战斗。 Not sure but it may achieve by jailbroken device. 不确定,但它可能通过越狱设备实现。

Apple said - In iPhone OS 4.0 and later, you can send text messages from within your application. Apple表示 -在iPhone OS 4.0及更高版本中,您可以从应用程序中发送短信。 This feature is strictly for sending messages. 此功能严格用于发送消息。 Incoming SMS messages go to the built-in Messages app. 传入的SMS消息将转到内置的消息应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM