问题
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 .
回答1:
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 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.
来源:https://stackoverflow.com/questions/21793885/detect-incoming-sms-with-specific-text-in-ios