Einzelnen Beitrag anzeigen

LangTsu
(Gast)

n/a Beiträge
 
#1

NotificationCenter - kein Sound unter Apple?

  Alt 7. Mai 2014, 13:40
Hallo Community

ich suchte eine Möglichkeit in meine App Benachrichtigungen einzubauen und bin auf folgendes Tutorial gestossen:

http://docwiki.embarcadero.com/RADSt...und_Android%29

Das ist auch genau das was ich gesucht habe.
Nur leider klappt das mit dem Sound unter Apple bei mir nicht

Ich bekomme die Notifications angezeigt, bekomme aber keinen Sound dazu.
Kennt dieses Problem jemand oder Kann mit BITTE sagen was ich machen muss

Wäre wirklich Klasse von euch Danke!

Hier mein Code
Code:
procedure TForm1.Button1Click(Sender: TObject);
var
  Notification : TNotification;
begin
   Notification := NotificationCenter1.CreateNotification;
  try
    Notification.Name := 'Neuer Job';
    Notification.AlertBody := 'Neuer Job ist vorhanden';
    Notification.Number := 1;
    Notification.EnableSound := True;
    Notification.AlertAction := 'Launch';
    Notification.HasAction := True;
    NotificationCenter1.PresentNotification(Notification);
  finally
    Notification.DisposeOf;
  end;
  Mit Zitat antworten Zitat