短信通知 [英] sms notification

查看:67
本文介绍了短信通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的iPhone应用程序开发人员. 我正在制作一个需要传入消息通知的应用程序,即使该应用程序已关闭. 谁能告诉我该怎么做...

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...

谢谢 拉希特·塔内亚(Rachit Taneja)

Thanks Rachit Taneja

推荐答案

Apple尚未为您的应用程序实现侦听传入的短信或电话的方法. iOS仅发送有关您的应用程序状态更改的通知.例如,在电话响起的情况下,您的应用程序将收到applicationWillResignActive(在低于iOS4 applicationWillTerminate的版本上)通知.

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.

Brad在此线程.

这篇关于短信通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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