Android real-time location tracker app (learn using Firebase :fire:, Google Maps & Location Api) :globe_with_meridians:
This is a simple android app where you can brodcast your location and everyone who has your dynamically generated unique key can track you in near real-time.
I created this project just for learning puposes particularly about firebase (firestore db), google maps api and google location api.
To use google maps in an android app you can use SupportMapFragment
or MapView
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Add permisions for coase and fine location also add meta-data tag for API key
'com.google.gms:google-services:3.1.1'
into dependencies block of the top-level gradle build filegoogle-services.json
file to your project_name/app/
directory from firebase console when you add an android app to your firebase projectenter the app package name & SHA-1 key (optional for firebase auth)
- To get SHA-1 key you can use your android studo by opening your particular project -> select signingReport gradle task -> copy & paste the SHA-1 key into the android app restriction form