【问题标题】:Push notification Android GCM - how to clear a Message?推送通知 Android GCM - 如何清除消息?
【发布时间】:2015-07-31 20:36:48
【问题描述】:

Delphi XE8,我通过 json 向 GCM 发送消息。单击消息后,我通过...阅读了它:

var
  LNotification: TPushServiceNotification;
begin
  for LNotification in AServiceConnection.Service.StartupNotifications do
  begin
    if Assigned(LNotification) and (LNotification.Json.ToString<>'') then
    begin
      Memo1.Lines.Add('Enter by Notification Click: ' +     LNotification.Json.ToString);
    end;
  end;
end;

您能帮我清除推送面板中的消息吗?

【问题讨论】:

    标签: android delphi google-cloud-messaging


    【解决方案1】:

    据我所知,您无法删除一个特定的推送通知,但要删除全部,请添加 TNotificationCenter 组件并使用 CancelAll 方法。

    P.S:如果收到推送时应用程序正在运行,点击它会删除。

    【讨论】:

      猜你喜欢
      • 2012-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-24
      • 2014-05-24
      相关资源
      最近更新 更多