1) Login: Login authentication will be done by API.
2) Bike Location: You need to show current bike location on google maps. You will get current bike location through API.
3) Set/Unset GPS Lock: To set GPS Lock first you need to get current bike location and call the API. To Unset the GPS Lock you need to just call the API.
4) Give Mobile Alert: You need to compare Active Lock GPS Location and mobile current location in every 20 seconds. If Lock GPS Location and current bike location difference more than 10 meters and your mobile location distance more than 1 meter from bike current location then you start an alert and if your mobile location and bike location less than 1 meter then unset GPS Lock. I will provide the code of calculation distance from GPS coordination. 5) Update Mobile Location: You need to update your mobile location into the server in every 1 minute by calling API.
6) Bike Status: You need to pull and show bike status from the server in every 1 minute by calling API.
7) Location History: You need to show bike location history by pulling data from API.
8) This should always run in the background.I attached API documentation and Design Mockup.