Answer the question
In order to leave comments, you need to log in
How to "wake up" an iOS application after several hours of phone inactivity?
The alarm clock application must initiate a socket connection in the morning so that the server can send various sounds to wake up the user (can be sent by other users in a fairly short period of time, regular pushes are not suitable). iOS unloads the application quickly enough, it is not yet clear how in the modern world to send messages (some data) to the iOS application (so that the functionality would start working at the right moment for the client) or that it would “knock” periodically on the server and check for necessity create a socket connection.
Thanks in advance for any ideas or hints.
Answer the question
In order to leave comments, you need to log in
https://developer.apple.com/documentation/uikit/ap...
https://medium.com/snowdog-labs/managing-backgroun...
emnip, that's all there is. It works in a weird way, but it's better than nothing.
as an option: you can try push notifications. just to wake up the application, and sausage what you need in the callback.
sometimes, this method works better than a background task.
Wangyu is the invention of a separate gadget that will hang on a wi-fi network and do what you need. What is the phone for these purposes? For this, people release smart speakers and are not tied to different axes. And from their servers with their gadget can do a lot. There are even undeclared killer features - but they won't tell us about it))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question