2

我在 Windows 7 中制作了一个 medreminder 应用程序。我想向用户发送警报,以防他错过吃药。为此,我使用警报来提醒用户。

但是我希望用户通过发送自动短信或电子邮件来获得警报,这在代码中似乎是不可能的,因为会出现一个弹出窗口,直到用户按下发送,邮件或短信才会发送。

所以我的问题是,除了警报之外,还有哪些可能的方法可以通过手机本身提醒用户。

我在http://thesociablegeek.com/windows-phone-7/windows-phone-alerts-and-reminders/上进行了搜索

4

1 回答 1

1

You can't send an SMS directly from the program, you can only compose a message but the user would still have to click "Send". The same applies to sending an email.

You can use an existing (or set up your own one) web service to do both of those things for you and just call the service from your wp7 app.

If it's just alerts you want though, I had good success implementing my alerts through Twitter using TweetSharp . The app would post a little note under a set up twitter account and the guy receiving the alerts can subscribe to that account and have the alerts pushed to him with minimal latency. The functionality doesn't require any user activity (like clicking "send") and can even be fired from a background task.

于 2012-11-22T14:54:35.180 回答