Hi everyone, there's a way to put a timer in the background. I have an app that pings with sockets at another desktop software of mine, but the ping in a timer after 3 minutes stops scrolling. How can I keep this timer in the background?
It depends. If you plan to release your app to the app store then it is not possible. If not then you can configure your app to be a background location tracking app and it will then continue to run in the background.
You can consider to send notification every 3 minutes to the device from your desktop app. The device will wake-up and be able to do some operations (sync data, etc).
Also you probably don't need so frequent notifications, but just when something has changed.
Notifications will not help. Non-silent notifications do not wake up the app. They just show the notification. Silent notifications are highly unreliable.
Understand. But there is no other to do. At least the desktop app can verify if the device received a silent-notification (supposing that the device will then connect to the desktop app to sync data).