【问题标题】:google-calendar API inform of event remindergoogle-calendar API 通知事件提醒
【发布时间】:2017-01-21 00:45:36
【问题描述】:

我需要与谷歌日历集成,我有 API 发生的基本内容,但现在意识到提醒只通知via email, SMS

所以 google api“推送通知”、POST 到 URL 将无法与提醒一起使用...

那么我如何在我的应用程序中通知已触发提醒,是否有解决方法?检查电子邮件的可扩展性不是很好。并且轮询谷歌日历服务器,也不是可扩展的?我将不得不在我的解决方案上轮询每个用户帐户?

如何通过 API 通知提醒?,谢谢

[什么是“弹出窗口”作为上述谷歌日历链接上的其他通知方法?]

【问题讨论】:

    标签: api google-api google-calendar-api


    【解决方案1】:

    关于你关于popup的问题,据说提醒是通过UI弹出窗口发送的。

    EventReminder[] reminderOverrides = new EventReminder[] {
        new EventReminder().setMethod("email").setMinutes(24 * 60),
        new EventReminder().setMethod("popup").setMinutes(10),
    };
    

    您可以参考此SO thread: How to Create a Reminder Notification,其中您需要AlarmManager 来安排您的定期通知(每天、每周、..)和Service 以在AlarmManager 关闭时启动您的通知。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-22
      • 1970-01-01
      • 2022-01-09
      相关资源
      最近更新 更多