My APP (In IOS platform) want get the message from SMS Inbox, how to do that? I also know that Google Glass APP can do that in iphone. How to get the message from SMS inbox in swift? thanks very much.
Asked
Active
Viewed 2,090 times
2
-
1in a regular environment you cannot do it because there no official API for it which would pass the review procedure, otherwise if you are not targeting to distribute your app via AppStore it may be possible. – holex Jan 08 '15 at 10:56
-
my APP is not target for APP Store, so could you tell me the detail method, thanks in advance – Victor LI Jan 09 '15 at 07:20
-
that post may help on you to start: http://stackoverflow.com/questions/25262064/read-sms-db-and-call-history-db-file-on-ios – holex Jan 09 '15 at 10:31
-
iOS 12 Update https://developer.apple.com/documentation/uikit/uitextcontenttype/2980930-onetimecode – singh.jitendra Oct 18 '18 at 09:07
2 Answers
2
You can not acces the SMS inbox on iOS, there is no API for it in the Public iOS SDK. What Google Glass does is handle the notification of incoming message via the Bluetooth Profile, this not something you can do in an app.

rckoenes
- 69,092
- 8
- 134
- 166
-
Thanks for your message. Google Glass (device) using Bluetooth communicate with iPhone, but its APP should first retrieve the SMS inbox content, then send to the Glass through Bluetooth. if Google Glass app can be authorized to access the SMS inbox, any other APP should also has the permissions ,That's my guess. – Victor LI Jan 09 '15 at 07:28
-
1No, the Google Glass app does not read the SMS inbox. The bluetooth protocol has a special protocol for displaying messages, this is wat google glass is using. This is also what some smartwacthes use. – rckoenes Jan 09 '15 at 08:12
1
We don't have any public API to get access SMS at the moment. Sorry to say this but it is practically impossible with public API as of now.

Emil
- 7,220
- 17
- 76
- 135

Janak Nirmal
- 22,706
- 18
- 63
- 99
-
Thanks for your message, do you know which private function should be used in swift? – Victor LI Jan 09 '15 at 07:32