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.
Related
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/
I've spent a great deal of time creating an Objective-C based application for the iPhone. I incorporated MailCore2 so that emails could be sent without a dialog popping up (Apple's system of in-app email). My app works perfectly on all of my devices, including all outside devices associated with TestFlight beta testing. Unfortunately, the moment Apple reviews the app, they always reject it, saying that MailCore2 made an AlertView with the contents: "Error! Please connect to the internet or try again later.", and the email never properly sends.
My question is, is there an alternative to MailCore2? I've heard of MailGun, but I see no documentation on their site for either Objective-C or Swift.
Thanks in advance to all who reply.
Mailigun is a services and yes you can send mail with Mailgun, but not receive mail like normal email app. Anyway it is completely different from mailcore (Imap/pop). Mailcore is so hard to use...
If you need only send email i can provide you entirely code for achieve this using mailgun.
Does anyone know of an iOS library that I can use to send a message to all users? From time to time I need to warn all users about new problems with iOS. Just wondering if there was a library for this.
Never mind. It's so simple. Download a message file in the background and just display it.
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
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).