Page 1 of 1

IOS TNotification problem

PostPosted: Sun Aug 12, 2018 12:29 am
by Lena
I can not receive notification on iOS, neither when the application is minimized, nor when it is activated - under any circumstances. FMLocalNotificationPermission is set to true (Project -> Options -> Version Info). Breakpoints indicate that the try block executes, however I do not see notifications. The application was given permission to receive notifications. Tell me, please, what's missing?
Code: Select all
if (NotificationCenter1->Supported())
   TNotification *myNotification = NotificationCenter1->CreateNotification();
    __try {
         myNotification->Number = 1;
         myNotification->AlertBody = L"Hello.";
         myNotification->Name = "MyNotificationStart";
            myNotification->FireDate = System::Dateutils::IncSecond(Now(), 600);