How to access text message in app?

I am getting only message compose but not any access of message recieve.

Replies

not any access of message recieve

If I understand your question, you would like to access iMessages (SMS) from your app ?


This is not possible, those messages can only be seen by Message app (sandboxed). And that is a good thing for privacy.


What do you mean: I am getting only message compose

Compose where ? In your app ?

What do you mean: I am getting only message compose

Compose where ? In your app ?


Answer:If i want to compose message from my app,then i can use

MFMessageComposeViewController for messaging.

Please tell me one thing any changes came in iOS 12 for access iMessages (SMS) or any changes for OTP message.

So, you see the message you are composing. Normal.


I have not noticed any change on this point in IOS 12.


h ttps://appleinsider.com/articles/18/07/16/everything-new-with-messages-in-ios-12

Yes, you need to set textField property like this

textField.textContentType = UITextContentTypeOneTimeCode;


Then the system automatically recognizes a one-time code from SMS and prompts the user to use it in the QuickType Bar, If the system recognizes successfully. At a certain message structure, the code can be recognized as a phone number.


You can check this in the message application. Gray underscore, black text - OTP, blue underscore and text - phone.