- Status: Fixed
- Priority: Normal
- Resolution: Fixed
- Platform: iOS
- Affects version: 1.16.4.1
Hi
The OnReceive events fires on Android but not on iOS.
I have tested FMX (works on both) but FGX unfortunately does not.
My test code is very basic:
procedure TFormMain.fgFormCreate(Sender: TObject);
begin
NotificationCenter1.RequestPermission;
end;
procedure TFormMain.fgButton1Tap(Sender: TObject);
var
LNotification: TNotification;
begin
LNotification := NotificationCenter1.CreateNotification;
LNotification.Name := 'Denneroll';
LNotification.Title := 'Exercise Finished';
LNotification.EnableSound := True;
LNotification.Number := 0;
LNotification.FireDate := Now + EncodeTime(0, 1, 0, 0);
LNotification.RepeatInterval := TRepeatInterval.None;
NotificationCenter1.ScheduleNotification(LNotification);
end;
procedure TFormMain.NotificationCenter1ReceiveLocalNotification(Sender: TObject; ANotification: TNotification);
begin
TfgDialogs.ShowMessage(ANotification.Name);
end;
On iOS the dialog is never shown.
I can confirm the same with FGX Sample Demo
Many thanks
Alan
Fix version: 1.16.5.0
Recommended Comments
Create an account or sign in to comment