Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey, Delphi Android, Delphi IOS

Send WinRT API Notifications In #Delphi XE8 Firemonkey On Windows 10

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE8 Firemonkey Windows 10 Notifications | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSDeveloper Marco Cantu from Embarcadero released a VCL example for sending Windows 10 notifications with Delphi XE8. I have converted this example over to Firemonkey. Apparently Windows 10 has a notification system vary similar to the notification system in Android and IOS. The first thing you need to get this example working is to install the WinRT API by clicking Tools|GetIt Package Manager in the Delphi XE8 IDE. I did have to make a few changes to the code for it to compile under FMX. These were converting Application.Handle to FmxHandleToHWND(Form1.Handle), converting Application.ExeName to ParamStr(0), and adding Winapi.Windows to the units section for MAX_PATH. I don’t have a Windows 10 machine so you’ll have to compile it and see if it works for you. Under Windows 8.1 it compiles and runs without errors. You should also be able to use this code with Appmethod.

Download the source code for sending Windows 10 notifications with Delphi XE8 Firemonkey.

Exit mobile version