Duplication by push
I have a problem as in the comments from Steve J.
What do you advise?
Moderator: 2ffat
void __fastcall TForm1::PushEvents1PushReceived(TObject *Sender, TPushData * const AData)
{
if (NotificationCenter1->Supported() && AData->Message != "")
{
TNotification * myNotification = NotificationCenter1->CreateNotification();
__try
{
NotificationCenter1->CancelAll();
myNotification->AlertBody = AData->Message;
NotificationCenter1->PresentNotification(myNotification);
}
__finally
{
myNotification->DisposeOf();
}
}
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormShow(TObject *Sender)
{
NotificationCenter1->CancelAll();
}
Users browsing this forum: Baidu [Spider] and 11 guests