Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Category: Programmazione

Digital solution partner

Delphi 11 – Firebase Cloud Messaging ( FCM ) – iOS app Push Notification

Goals: Integrate Firebase push notifications (FCM) into an app built with Delphi for iOS without the help of third-party libraries. Having the same base code in the application and in the servers for managing pushes in Delphi the same as that used for Android.   Test environment used: VM Delphi 11 Alexandria Ent. Edition on…
Read more

Delphi 11 – Firebase Cloud Messaging ( FCM ) – Android Push Notification

RAD Studio 11 Alexandria push notification with Android via Firebase. Targets: 1 – Receive push notifications on my Android app 2 – Have a server system for sending push notifications   Assumptions from which I started for this test: 1 – Have a Google Firebase account: https://console.firebase.google.com/ 2 – Have an app published on the…
Read more

Delphi disable AppNap on MacOSX application

Apple MacOSX is a fantastic OS, when your app goes in the background it consumes few resources, this is a fantastic thing if you do not plan to run processes in the background or if it is not a server application. To avoid that your application is not slowed down I have created a very…
Read more

Evaluating TMS FNC Core and TMS UI on FmxLinux

Delphi is truly a cool development environment, with the right libraries it becomes unbeatable. Now with version 11 and all the IDE in HDPI it is a pleasure to work with. fmxLinux is the library that comes with Delphi to allow you to create visual applications on Linux with Firemonkey and it works great. TMS…
Read more

Windows kill application programmatically

To force quit an application by application name in MS-Windows you can use “taskkill” command. To kill an application by app name using taskkill you can write: taskkill /f /t /im julius.exe In this example we kill our application “JuliuS” .

Detect device orientation change Delphi Firemonkey

To detect device orientation change, you can use the following example: uses System.Messaging, FMX.Platform; var FId: Integer; // Subscribe to TOrientationChangedMessage FId := TMessageManager.DefaultManager.SubscribeToMessage(TOrientationChangedMessage, DoOrientationChanged); // Write orientation change handler: procedure TMyForm.DoOrientationChanged(const Sender: TObject; const M: TMessage); var s: IFMXScreenService; begin if TPlatformServices.Current.SupportsPlatformService(IFMXScreenService, s) then begin case s.GetScreenOrientation of TScreenOrientation.Portrait: ; TScreenOrientation.Landscape: ; TScreenOrientation.InvertedPortrait: ;…
Read more