How to programmatically read incoming text messages on iOS

There were many questions about how to programmatically access SMS messages stored on iPhone. After doing a little research, you will quickly and sadly find out that Apple will not allow us to touch the SMS or SMS database due to obvious security concerns. Let this fact be cast aside for a moment.

I have a BMW car equipped with a fantastic "infotainment" system called iDrive. Most recently, I realized that I really can read incoming text messages through the iDrive system when my iPhone is connected to USB. It intrigued me a lot. After playing with the car and the phone configuration, I finally realized that iDrive was actually displaying text messages from the Notification Center. This means that every time I receive a new message, it will be displayed as a notification on the lock screen, and the car will be able to access it, since the Notification Center has public APIs. As soon as I removed the Messages app from the notification, I received nothing.

As many of you thought before, I also wanted to create an application that could track incoming text messages and take some action based on keywords scanned from the message body.

Until now, I was very inclined to switch to Android to free me, however, watching how the machine displaying incoming text messages makes me see some light at the end of the tunnel.

Does anyone know how to create an iOS application that can read notes from the Notification Center? I tried some research, but there seems to be such a broad question that it can be difficult to find specific documentation for the iOS Notification Center.

I should mention that I'm not an experienced iOS developer, so any help would be greatly appreciated.

By the way - I can never understand the official Apple documentation anyway. Kind of confusion to find a complete example of a working application.

Thanks for the help. Fabio

+6
source share
3 answers

Apple's MFi program allows you to install the chip on the host

and the Bridge API provided the ability to go through notifications or messages, call logs, etc. to the connected device (this works via Lightning, 30 pin and Bluetooth).

This access to the notification center can be disabled by switching the application in the notification settings.

How to do this in the application is not available with any of the published APIs

+2
source

impossible with official SDK

you can only check the status. so basically if you get a notification

+1
source

You can read the data from the notification trace, the Apple Notification Manager library is open, we can implement it. just read each notification for incoming sms and, if a match is found, then perform your functions

+1
source

All Articles