Can Our Taxi App Send User Location via WebSocket While Running in the Background?

For our taxi app, we need to continuously send the driver's location to the server every 5 seconds for accurate tracking. If the user switches to another app or puts the app in the background, can the location updates continue? Also, what happens if the screen is locked?

We haven't implemented it yet but if IOS does not support websockets in the background we might need to rewrite the existing backend.

The key issue here isn’t the networking, it’s keeping your app from being suspended. As long as your app is running in the background, it’ll be able to access the network just fine.

So, do you have an existing mechanism to keep your app running in the background?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Can Our Taxi App Send User Location via WebSocket While Running in the Background?
 
 
Q