top

Google Awareness APIs – Creating Intelligent and Context Aware Apps

Recently Google I/O 2016 commenced at Shoreline Amphitheatre in Mountain View, California and the announcement of Google Awareness API was made. These API enables the apps to react intelligently to user context using snapshots and fences with minimal usage of system resources. Google Awareness APIs are now available for the Android App Development through Google Play Services. There are 7 different types of context through which apps understand user’s current situations. Information collected from these are helpful in optimizing the experience of the user. The context includes location, weather, user activity and nearby beacons. Snapshots API and Fence API are the two ways offered by Awareness APIs through which app developers can take advantage of context signals within their app: Snapshots API provides the user’s current context and it allows easy access to the request information from the app. Example: “give me the user's current location and the current weather conditions”. Fence API gives all the information about user’s change in the context to the app. For example, "tell me whenever the user is walking and their headphones are plugged in". These API possess similarity to the Geofencing API, once an awareness fence is registered, it can send callbacks to the app even when it’s not running. The Awareness APIs are designed in such a way that now it has become possible to optimally process context signals in new ways. It is important for the APIs to provide accurate and insightful context cues , alongside the stress has been given on the resource management to save battery and minimize bandwidth allocation. Some of the apps in Google Play Store are using awareness APIs and giving their customers a better app experience. Apps like Trulia and SuperPlayer Music have found an incredible way to integrate context awareness. Let’s check how these apps behave with context awareness. Trulia is an online residential real estate site, using Fence API to find open houses. The app sends a notification to the user when it senses that user is moving and it shows different open houses around them. Notifications are sent as a reminder to the users to stop by and have a look.                                                                                              Source: Android Developers Blog SuperPlayer Music uses both Snapshot API and Fence API and gives suggestions for perfect music to match one’s mood. Whether the user is just finishing up a run and beginning to stretch, setting off on a long car ride, or just getting to the gym, their assistant can understand user’s context and suggest the right playlist for them.                                                                                                    Source: Android Developers Blog Awareness API is one of the initial step taken by Google towards creating a tailored experience for different apps. We can get more information for Google Awareness API Android by watching Google I/O session Watch it here https://www.youtube.com/embed/37ia7S4Lsv4  
Rated 4.0/5 based on 20 customer reviews
Normal Mode Dark Mode

Google Awareness APIs – Creating Intelligent and Context Aware Apps

Paula Hernandez
What's New
01st Jul, 2016
Google Awareness APIs – Creating Intelligent and Context Aware Apps

Recently Google I/O 2016 commenced at Shoreline Amphitheatre in Mountain View, California and the announcement of Google Awareness API was made. These API enables the apps to react intelligently to user context using snapshots and fences with minimal usage of system resources. Google Awareness APIs are now available for the Android App Development through Google Play Services.

There are 7 different types of context through which apps understand user’s current situations. Information collected from these are helpful in optimizing the experience of the user. The context includes location, weather, user activity and nearby beacons.

Snapshots API and Fence API are the two ways offered by Awareness APIs through which app developers can take advantage of context signals within their app:

  • Snapshots API provides the user’s current context and it allows easy access to the request information from the app. Example: “give me the user's current location and the current weather conditions”.

  • Fence API gives all the information about user’s change in the context to the app. For example, "tell me whenever the user is walking and their headphones are plugged in". These API possess similarity to the Geofencing API, once an awareness fence is registered, it can send callbacks to the app even when it’s not running.

The Awareness APIs are designed in such a way that now it has become possible to optimally process context signals in new ways. It is important for the APIs to provide accurate and insightful context cues , alongside the stress has been given on the resource management to save battery and minimize bandwidth allocation.

Some of the apps in Google Play Store are using awareness APIs and giving their customers a better app experience. Apps like Trulia and SuperPlayer Music have found an incredible way to integrate context awareness.

Let’s check how these apps behave with context awareness.

Trulia is an online residential real estate site, using Fence API to find open houses. The app sends a notification to the user when it senses that user is moving and it shows different open houses around them. Notifications are sent as a reminder to the users to stop by and have a look.

                     Android Truila

                                                                       Source: Android Developers Blog

SuperPlayer Music uses both Snapshot API and Fence API and gives suggestions for perfect music to match one’s mood. Whether the user is just finishing up a run and beginning to stretch, setting off on a long car ride, or just getting to the gym, their assistant can understand user’s context and suggest the right playlist for them.

                       Suoer player Music

                                                                           Source: Android Developers Blog

Awareness API is one of the initial step taken by Google towards creating a tailored experience for different apps. We can get more information for Google Awareness API Android by watching Google I/O session

Watch it here

https://www.youtube.com/embed/37ia7S4Lsv4

 

Paula

Paula Hernandez

Blog Author

Paula spent six years lecturing about Java before settling as a full-time independent Android developer. She also has strong interest in writing about Android and the Internet of Things (IoT).

Leave a Reply

Your email address will not be published. Required fields are marked *

SUBSCRIBE OUR BLOG

Follow Us On

Share on

other Blogs

20% Discount