2014년 11월 29일 토요일

message scheduler app

hello every body, does anybody knows how to schedule text message for future delivery in AI2?



You need to set a date in the saved message, and check the physical date via a timer.  In that timer, run through all of the stored pending messages, and if one matches the date saved with the message, send it.



You can not do that ordinarily in AI2.  AI2's email directs you to the email program on your device and requires manual intervention to actually send the email.   It is probably possible to send an email differently using a javascript or some other gimmick.

AI 2 apps do not run in the background, so, even if you use a javascript, your app that 'originates' the message needs to be turned on.

What you can do is save scheduling info in a TinyDb and have AI2  send the instructions to the email program on or after a set date.   However if you want the message to be sent on the 25th of the month and your app is not activated on the 25th, but is turned on on the 25th, the message will not be sent until after the 25th and depending on how you code; might not be sent at all.


댓글 없음:

댓글 쓰기