How to keep alive socket.io when app enters background mode in swift?
up vote
1
down vote
favorite
I have a location tracker app for IOS which should send current location even if app is in background mode. But socket.io dies when app enters background mode. Is there a way to keep it alive?
swift socket.io background
New contributor
add a comment |
up vote
1
down vote
favorite
I have a location tracker app for IOS which should send current location even if app is in background mode. But socket.io dies when app enters background mode. Is there a way to keep it alive?
swift socket.io background
New contributor
You should share the code. Cheers!
– Ugnius Malūkas
Nov 21 at 7:29
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a location tracker app for IOS which should send current location even if app is in background mode. But socket.io dies when app enters background mode. Is there a way to keep it alive?
swift socket.io background
New contributor
I have a location tracker app for IOS which should send current location even if app is in background mode. But socket.io dies when app enters background mode. Is there a way to keep it alive?
swift socket.io background
swift socket.io background
New contributor
New contributor
New contributor
asked Nov 21 at 7:23
user3336732
61
61
New contributor
New contributor
You should share the code. Cheers!
– Ugnius Malūkas
Nov 21 at 7:29
add a comment |
You should share the code. Cheers!
– Ugnius Malūkas
Nov 21 at 7:29
You should share the code. Cheers!
– Ugnius Malūkas
Nov 21 at 7:29
You should share the code. Cheers!
– Ugnius Malūkas
Nov 21 at 7:29
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
You should't use Socket IO for background tasks.
Use notifications to achieve the desired behaviour: https://developer.apple.com/notifications/
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
You should't use Socket IO for background tasks.
Use notifications to achieve the desired behaviour: https://developer.apple.com/notifications/
add a comment |
up vote
1
down vote
You should't use Socket IO for background tasks.
Use notifications to achieve the desired behaviour: https://developer.apple.com/notifications/
add a comment |
up vote
1
down vote
up vote
1
down vote
You should't use Socket IO for background tasks.
Use notifications to achieve the desired behaviour: https://developer.apple.com/notifications/
You should't use Socket IO for background tasks.
Use notifications to achieve the desired behaviour: https://developer.apple.com/notifications/
edited Nov 21 at 9:01
answered Nov 21 at 8:56
Gustavo Vollbrecht
5711515
5711515
add a comment |
add a comment |
user3336732 is a new contributor. Be nice, and check out our Code of Conduct.
user3336732 is a new contributor. Be nice, and check out our Code of Conduct.
user3336732 is a new contributor. Be nice, and check out our Code of Conduct.
user3336732 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53407080%2fhow-to-keep-alive-socket-io-when-app-enters-background-mode-in-swift%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You should share the code. Cheers!
– Ugnius Malūkas
Nov 21 at 7:29