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

前端 未结 1 1080
别那么骄傲
别那么骄傲 2020-12-12 07:24

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?

相关标签:
1条回答
  • 2020-12-12 08:10

    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.

    0 讨论(0)
提交回复
热议问题