问题
I am a new iphone application developer. i am making an application which requires an incoming message notification even if the application is closed. can anybody tell me how to do that...
Thanks Rachit Taneja
回答1:
Apple has not implemented a way for your application to listen for incoming text messages or phone calls. iOS only sends out notification about changes to your applications state. For example, when your phone rings in which case your application will receive the applicationWillResignActive (on versions older than iOS4 applicationWillTerminate) notification.
Strictly speaking these are not actual notifications, these methods will be called in your applications delegate.
The closes solution would probably be what Brad suggests in this thread.
回答2:
You can use core telephony framework but you cant upload your app on app store.Because it's private framework which apple doesn't allow.Using this framework you can send sms upto ios 5 for ios 6 i am looking into this.
来源:https://stackoverflow.com/questions/3683492/sms-notification