Our assignment was to create an earthquake app for both the watch and the phone. This app is supposed to notify the user of earthquakes on the watch. The phone app displays the earthquake on the map and shows pictures of the app.
My solution pulls earthquake data using USGS API and checks every 6.66 minutes to see whether a new earthquake has happened. The opening screen on the phone shows a list of recent earthquakes up to a week ago. Clicking on an earthquake allows you to see the earthquake on the map. Shaking the watch will pull up pictures using the Instagram API to pull pictures that were taken near the earthquakes.
If a new earthquake has happened since the last time we queried the USGS API, we send a notification to the watch. If the user opens the notification, the phone pulls up a map with the earthquake mapped. If they tap on the watch, the phone goes back to the initial screen with a list of recent earthquakes.
EXTRA CREDIT:
- Map displays the pin where the earthquake occurred and a circle surrounding the pin that is proportional to the magnitude of the earthquake
Screenshots of Your Fault app
Comments