Jump to content
View in the app

A better way to browse. Learn more.

FGX Native

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
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
  • Fix version: 1.16.5.0

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

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.