【问题标题】:Android: Have PushNotifications an income-timestamp?Android:PushNotifications 有收入时间戳吗?
【发布时间】:2016-10-13 06:07:47
【问题描述】:

我们正在使用我们外部 Java 项目中的 Gcm Push Notification Server 将推送通知发送到 Android 手机。

在此手机上,有一个正在运行的应用程序会对此通知做出反应。应用程序需要知道推送通知何时到达手机(以便计算从该时间点开始的 120 秒计时器)。

andorid 应用程序中是否有可能找出推送通知何时到达...某种创建/收到/收到的时间戳?

谢谢

【问题讨论】:

    标签: android notifications timestamp push


    【解决方案1】:

    GcmListenerServiceonMessageReceived() 方法中尝试System.currentTimeMillis()

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多