我试图在 NotificationCenter 中捕获消息以便将其用于其他目的,当我通过 gcm php 服务器在我的设备中收到通知时,我尝试使用 NotificationCenter:NotificationCenterReceiveLocalNotification Event 捕获消息,但不幸的是它没有。
procedure Tdm.NotificationCenterReceiveLocalNotification(Sender: TObject; ANotification: TNotification);
begin
ShowMessage(ANotification.Name) ;
end;
知道错误或错误会是什么吗?
谢谢你。