How can we access message from iMessage ? - ios

Is it possible to access iMessages ? How to send iMessages programmatically ?
Apple iOS provide any public API to access or delete Messages ?

It is possible to send messages (Sending an iMessage as simple as possible iOS) but it isn't possible to read and delete messages.

Apple provides this in their SDK through MessageUI, check the Apple documentation: https://developer.apple.com/library/ios/#samplecode/MessageComposer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010161
You could look at this answer: https://stackoverflow.com/a/10850188.

They just announced some stuff yesterday that might be of some use for you - it's the new Messages framework. You've got some handy classes there like MSMessage and MSConversation, but just explore and read more below:
https://developer.apple.com/reference/messages

Related

How to send message to any number from app

Actually i have implemented app to phone call using Sinch. is there is any possibility to send message to any number from app like way2sms,etc.
There are many services that will help you to build applications.
https://www.twilio.com/sms
https://www.twilio.com/sms/api
https://www.plivo.com/sms-api/
You can use some service like this and create SMS applications
You can use the MFMessageComposeViewController:
More Information please refer the link:
http://www.appcoda.com/ios-programming-send-sms-text-message/

ios open call history

How to open the call history programmatically?
Sort of:
call://history
?
You CANNOT do this because there is no available API for doing so and no custom URL ever for opening it directly into that app.
So it is NOT possible sorry.
I'd also say if you even found a way to do this it would be rejected under:
2.5 Apps that use non-public APIs will be rejected
because you'd have to use a non-public API to do this.

Swift send messages without message composer

Can I send a iMessage or simple message without using the MFMessageComposeViewController?
No, to the best of my knowledge, you can't.
You can't, its to prevent privacy issues. Similarly, you can't send text messages.
You can still use Objective-C code on Swift project. SO try use "Mail2Core" 3rd party framework. You need to configure your mail using their framework locally and then that framework allows you to send mails without apple's MFMailComposerController. http://libmailcore.com check this link for more info.

Is there any Incoming SMS Broadcast Receiver like Receiver in iOS

I need to verify account using reading sms and then matching the verify code.
Android have such functionality like :
where they can read sms and check a particular value.
Need to verify account using text messages without open the text message like in Whatsapp used in Android.
Is there any NSNotification Center etc in iOS to serve this task?
There is no way to do this on iOS, since your app does not have acces to the incoming text messages.
Also it is disallowed by the AppStore review guidelines due too privacy concerns.
You can get OTP from your message.
otptextField.textContentType = .oneTimeCode
Can please get the project from his link.
https://github.com/karthickkck315/Automatic-OTP

Possible to send automated email?

The iOS SDK class MFMailComposeViewController can be used to let the user compose an email message.
What I'd like to do, is for the iOS app to send an email in the background, with no user interaction. Is this at all possible/allowed in the iOS SDK?
Nope. There isn't any API available to do this. You'd need to roll your own SMTP client and have the user enter credentials into your application. On top of that Apple may not approve this.
Unfortunately, I don't think Apple would ever allow this because (for example) then you could just get everyone's email address by auto-sending mail to yourself. :(
I actually wanted to implement something like this for the express purpose of alerting me when a critical error happens on an app in the app market.
Best solution would be to create an API (just ping a php file or something), and have it send the relative alert message to your email).

Resources