Possibly only applies to Applications with a "Service"
Var
ApplicationEventService: IFMXApplicationEventService;
begin
if TPlatformServices.Current.SupportsPlatformService(IFMXApplicationEventService,
ApplicationEventService) then
ApplicationEventService.SetApplicationEventHandler(HandleApplicationEvent);
case ApplicationEvent of
TApplicationEvent.WillBecomeForeground:
TApplicationEvent = (FinishedLaunching, BecameActive, WillBecomeInactive, EnteredBackground, WillBecomeForeground, WillTerminate, LowMemory, TimeChange, OpenURL);