Location based push notifications

3,127 views

Published on

Slides from lightning talk given at Esri UC Dev Meetup, July 2012

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,127
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
17
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Location based push notifications

  1. 1. Location Based PushNotifications for Mobile Apps
  2. 2. Problem Need to add native pushnotifications to QuakeFeed iOS app based on location of events and user’s area of interest
  3. 3. Simple User Experience• Subscribe to Channels – Geographic Filter (Area of Interest) – Attribute Filter (Minimum Magnitude)• Receive Notifications
  4. 4. What About Android?Although QuakeFeed is an iOS app,this solution works for Android too Hey! So don’t sleep…
  5. 5. GoalServer-less, cloud-based solution
  6. 6. Solution Architecture ArcGIS Online + + (Easy As…)
  7. 7. ArcGIS Online• Define Geographic Areas of Interest• Stored in the Cloud “SanFran” Channel “SoCal” Channel
  8. 8. What Is Parse• User and Device Management• Schema-less database in the Cloud• REST API for push notifications• Native iOS and Android SDKs, Plus REST API• Incredibly Cheap – Free Level: 1M API calls + 1M Push Notifications
  9. 9. How We Use Parse• Anonymous User Accounts• Store Channel Preferences in Cloud DB• Store Processed Events in Cloud DB• Send Push Notification Through REST API
  10. 10. • Ties our solution together• Run Python Scripts in the Cloud – Or Ruby, Go, Node, etc.• Insanely Cheap – 5 cents/hr billed by the second• Massively Scalable – 1000s of concurrent processes
  11. 11. Python Script Psuedo-code• Pull USGS Geo-RSS feed for Earthquakes• Check for new Seismic Events – Keep track of processed Quakes in Parse DB• Query ArcGIS Online for Spatial Channels• Assemble Push Notification Payload• Send Notification via Parse REST API
  12. 12. Other Use Cases• Keep in mind that any of the elements could change in real time: – Geographic Area of Interest – Attributes of Interest – User Channel Subscriptions• Short List – Field Management (Worker Notification) – Emergency Event Coordination – Alerts when Assets Divert from Expected Routes
  13. 13. Contact Info James Richards james (at) artisanglobal (dot) com If Interested in Beta Testing QuakeFeedOr Adapting This Solution to Another Use Case Drop Me a Line

×