Ali
Ali

Reputation: 11560

can my app knows that I received a sms on my iphone using Notification Center

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?

Upvotes: 1

Views: 947

Answers (1)

Jack Lawrence
Jack Lawrence

Reputation: 10772

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.

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

Upvotes: 1

Related Questions