Jump to content
Yaroslav Brovin
Message added by Yaroslav Brovin,

Please be aware that these comments were copied here from another source and that the date and time shown for each comment may not be accurate.

  • 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

User Feedback

Recommended Comments

  • Administrators

I confirm. We haven't migrated Notification Center Delegate implementation for iOS. So at this moment, This event doesn't work.

  • Administrators

Изменено Статус на Fixed

Изменено Резолюция на Fixed

Изменено Версия с исправлением на 1.16.5.0

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.