sms notification

和自甴很熟 提交于 2019-12-08 07:26:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!