First, obtain your PubNub keys from signing up below. After creating a PubNub app, you will receive your subscribe and publish keys, which you will need to input in the Constants.java
class.
You will also need your Google Maps API keys. Create a Google Cloud Platform account in order to use google maps APIs, which will power a large portion of the app. From the API manager, enable the Google Maps Android API, Directions API, and Places API. You can obtain your keys from the credentials tab. Your key will need to go in the Constants.java
file and the AndroidManifest.xml
file.
After including the relevant keys, build the project in Android Studio and run it through a connected device or an AVD. Note: the first build may take a while; here is a barebones version of this project.
The current state supports passenger and driver geo-location tracking. To run this, first select Home
from the passenger device and Driver
from the driver device.
Sign up for PubNub click here: