iOS Question MQTT, long running task

janderkan

Well-Known Member
Licensed User
Longtime User
In Android I have MQTT functions in a service that is started with Startforeground.
In IOS there is no Startforeground.
How can I make sure that MQTT is always running.
 

janderkan

Well-Known Member
Licensed User
Longtime User
Yes I do use this code.
But in Android, without Startforeground, the service is killed.
And in Ios I expect the same, but there is no Startforeground.
I need the service to run always.
 
Upvote 0

janderkan

Well-Known Member
Licensed User
Longtime User
My app will include a GeoFence service, this I can mark as Background execution, type location.
Will it be too creative to put my MQTT in the same service :)
 
Upvote 0
Top