iOS Question Background network check

QtechLab

Active Member
Licensed User
Longtime User
Hello guys,

Which is the most correct way to obtain a background worker that ask someting to a server, in order to obtain new data? The perfect example is WhatsApp.

Thanks in advance
 

QtechLab

Active Member
Licensed User
Longtime User
Yes sorry, i was talking about fetching.

The log gave me this before close the debug of the App:

Can't endBackgroundTask: no background task exists with identifier 3b6e6e, or it may have already been ended. Break
 
Upvote 0

QtechLab

Active Member
Licensed User
Longtime User
This is what i'm trying to achieve:
I need to write a service that every 60 seconds checks some data on a remote server and, if necessary, download a few bytes notifying the user.
The service must be constant, stable in time.

Assuming that i can't use the push server because the Apps need to work alone
Is there any way to do that?
 
Upvote 0

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,
Assuming that i can't use the push server
Push notifications are a good choice here, because iOS wouldn't wake up your App every minute for background fetch ...

I need to write a service that every 60 seconds checks some data on a remote server
You can do this service on the push server, and send a push notification to the user if necessary ...

The service must be constant, stable in time.
This could be a problem as Push notifications are not 100% reliable (from my experience I can say, that I had no problems yet)

Jan
 
Upvote 0

QtechLab

Active Member
Licensed User
Longtime User
Thanks every one.
i've written the remote server in vb.net, i'll add the part related to push notification
 
Upvote 0
Top