Einzelnen Beitrag anzeigen

sko1

Registriert seit: 27. Jan 2017
577 Beiträge
 
Delphi 10.1 Berlin Enterprise
 
#1

Notification angezeigte Uhrzeit

  Alt 6. Apr 2018, 14:12
Hallo,

von einer Android-App lasse ich Notifications anzeigen, so z.B. eine Notification für einen Termin um 16:00 Uhr die 2h vorher aufpoppen soll.

Delphi-Quellcode:
   
 MyNotification := NotificationCenter1.CreateNotification;
 MyNotification.Name := 'MyNotification';
 MyNotification.AlertBody := 'Delphi for your mobile device is here!';
 MyNotification.FireDate := EncodeDate(2017, 4, 6) + EncodeTime(14, 0, 0, 0);
 NotificationCenter1.ScheduleNotification(MyNotification);
Das Poppt auch um 14:00 wie gewünscht auf, hat aber die Unschönheit, dass rechts in der Meldung "14:00 Uhr" steht!
Ich könnte ja im Alertbody noch den richtigen Termin eintragen, mich aber stört das "falsche" 14:00!

Ciao
Stefan
  Mit Zitat antworten Zitat