可以我的应用程序知道我使用通知中心在我的iphone上收到了短信 [英] can my app knows that I received a sms on my iphone using Notification Center

查看:89
本文介绍了可以我的应用程序知道我使用通知中心在我的iphone上收到了短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个应用程序,我需要向用户显示您收到短信的消息,是否可以使用NSNotificationCenter。
请帮帮忙?

I am, creating a app in which i need to show message to user that you received sms , is it possible using NSNotificationCenter. Please help?

推荐答案

据我所知,这是不可能的。 iOS会将新短信与发送到系统的推送通知非常相似,并且您的代码不会收到未发送到您应用的推送通知的通知。

It's not possible, as far as I know. iOS treats a new SMS very similarly to a push notification sent to the system, and your code doesn't get notified of push notifications that are not sent to your app.

重申一下,当您的手机收到短信(短信)时,iOS不会通知您的应用。

To reiterate, iOS does not notify your app when an SMS (text message) has been received by your phone.

这篇关于可以我的应用程序知道我使用通知中心在我的iphone上收到了短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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