I'm building an iOS app that needs access to the location of the two users: driver and passenger. This app will be quite similar to Uber app where the passenger requests for a driver nearby to pick him up and eventually track the location of the driver real time. I'm new with location based app, so I would like to ask for best approach to do this. So here's my algorithm so far:
Thanks
I think send data through push is bad idea (use webscoket for example or request to server to REST).
1) Use CLLocationManager to get current position example, very easy
2) Use APNs to push or use firebase to easy send push
3) Just use REST
4) Just REST
5) Use CLLocationManager and by timer send current driver location. Use example from first paragraph
6) Use websocket or request to update info about driver location
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.