Is it possible on iOS to send an email in the future, by setting a time and date, without notification? Can someone guide me?
YES it is possible. But for that you need to create a web service which will send mail on behalf of user with his/her notification.
Create web service, pass details for mail and send mail from there only is the only solution if you don't want to notify user or don't want to use MFMailComposeViewController for sending mails.
You can do this from an other server, you need a web server with php and mysql, you create a webservice, and send the "email" to the server, save it in the database with the subject, body and the date you want to send the email.
Than o the server you set up a cronjob that will run at specific intervals and check each email in the database to see if it's the time to send it, if so will send the email,
Basically this is the only solution you can have in this case, the user will think that he sent the mail, but the email will be sent later by the web server, not by the phone.
Use local Scheduling Local Notifications and using this you can send mail as per your requirements.
Scheduling Local Notifications
Hope, this will help you..
Related
I want to send alarm notification to an external application . I saw the user guide to send alarm notification to email via SMTP . I need to know how can I configure an application so that the alarm can be sent over http/tcp.
Thanks
skp
You can use Thingsboards rule-chain for this.
There is a rule-node called rest api call where you can setup the request.
It will send the message payload of its input as the request body.
What I want is to send an automated push notification to users once a day, and have found a way to do this with automated notifications with OneSignal. The problem is that it asks for a title/message to input on their console, but what I wanted was to have a backend (haven't chosen yet, probably Firebase) with some strings, and each day a string will be randomly chosen and that will be automatically pushed to all of my users. Is there a way to do this with OneSignal, and if not with some other push notification service?
Can I accomplish this with the OneSignal API, or should I write some custom script and host it somewhere (like cron) that sends these using API calls?
thanks
I want to send and receive text messages without showing MFMessageViewController from my application. Could anybody tell me how is it possible?
Not Possible , Unless you use 3rd party api for send/received sms.
you have to use Web service and Apple Push Notification Service for send message to other user without using MFMessageComposeViewController
You can't do it without MFMessageComposeViewController. Apple won't allow to send SMS without user interaction.
I've alternate solution of this, out of scope of iOS. Use web service API. Create a web service at server side that send a message to specific number(s) that accept numbers as parameters with request.
At specific time interval (according to your requirement) send a web service call with number as request parameter.
Web server can do it. It can send message to any device.
For an iOS app which connects to a user's mailbox, i'm looking for a reliable way to send the user a push notification when new mail is available. (Without polling, of course).
If needed, I'm ok with setting up a server that will receive a push from gmail and re-send it as an iOS push.
It is not ok however if the user has to configure anything special in their account for the push to work.
Any advice or reference to a library (or external service) would be greatly appreciated.
Thanks!
Unfortunately there currently is no mechanism to receive updates automatically when new mail arrives. I would recommend logging an enhancement request for push notification support in the Gmail API in the Apps API issue tracker. In lieu of this, you can minimize resource utilization by only doing a full sync once, and then keeping track of the history id and doing only partial syncs from that point.
Google have added official support for push notifications on mailbox changes via the watch() call.
Usage is documented here: https://developers.google.com/gmail/api/guides/push#getting_gmail_mailbox_updates
Would it be possible for me to implement a client that is capable of receiving IMAP push messages, without the awareness of the user (i.e. they are not displayed in an inbox etc.)
Yes. You can create a job (corn) to check for emails every few often and send a push message (apns) to the user (using your app) with the email message attached as body.