Info
My UWP app will allow users to control their PC's cursor wirelessly from their phone via a socket connection. Since the app acts as the user's mouse, it must be "always on" to react when socket data is received and move the mouse.
Reading into the app lifecycle, it doesn't seem possible to keep the app constantly running. Since the app will be in the background, it could be suspended or terminated at any point (since the system thinks its not currently being used), and the overhead from socket brokers may cause unwanted delay in responsiveness.
Question
Is there a solution within UWP so I can continue using it (eg. keeping the app running / good enough socket brokers), or is it worth moving to Win32 to meet the requirements?