gpt4 book ai didi

android - 推送通知 Android GCM - 如何清除消息?

转载 作者:行者123 更新时间:2023-11-30 01:59:14 24 4
gpt4 key购买 nike

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;

你能帮我清除推送面板上的消息吗?

最佳答案

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

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

关于android - 推送通知 Android GCM - 如何清除消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31754782/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com