Update data in the application after notification from the server - even when the power is gone?

I have an event registration system in which users can register online in the web application, as well as in the iOS application. Events are synchronized with the local calendar on the iPhone.

Now I would like to ensure that whenever a user changes something in a web application, he automatically updates the device calendar. I tried push and background fetch, but both of them do not work when the user leaves the application. Is there a way to at least periodically run some code in the application for updating?

+4
source share
4 answers

, PushKit. , , .

PushKit VoIP, watchOS . , Apple - .

, PushKit, .

+1

,

  {
    "aps" = {
        "content-available" : 1
    };
    data = {
        "title" = "Welcome";
        };
   }
+1

, push- , . , push- , , , .

push- , , ( ) , .

The real solution here is probably to teach the user that forced shutdown does not optimize battery life, but in fact in many cases worsens battery performance. This is a common misunderstanding and teaching the user not to do this will not only benefit your applications, but also other ones. Therefore, if your application does not rely on force, this may be a solution to show the user an explanation screen, explaining to him that this is detrimental to the experience of the application.

0
source

Source: https://habr.com/ru/post/1683034/


All Articles