I use component TBeacon and its events OnEnterBeacon and OnExitBeacon. If I minimize the application screen android device, then after a while it ceases to perceive events OnEnterBeacon and OnExitBeacon. How do I get a minimized application from the android screen continued to work? Thanks.
Long story short, once the user can no longer see your app, it moves to the background and becomes subject to termination if the user does not switch back to the app for while. That is just how Android works. If you need to perform operations in the background, like listening for events, you may have to implement that logic in a service instead.
I found a solution in the examples: C:\Users\Public\Documents\Embarcadero\Studio\18.0\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\AndroidBeaconServiceDemo Naturally it Object Pascal I will try to understand.