GCM provides a way to group messages that are part of a larger subject using something called "topics" - this lets users that are part of larger groups all listen in for topics that interest them. For example, a music ticketing site might send a message t
- [Voiceover] In addition to sending messages…to individual client apps,…you can use the concept of topic messaging…to broadcast messages to any client…that's interested in that topic…and there's no limit on the number of topics per app.…An example of this might be a news topic,…or maybe concert information for a specific band,…or maybe a message intended for a specific group of people…in your organization.…So let's add topic subscriptions to our example.…So in the GCM exercise project in Android Studio…that we've been working on,…let's go to the GCM register service class.…
And you can see here at the top there's a…private string variable named topics…that contains topic one and topic two.…So these are just going to be…some sample placeholder topics.…Now in the on handle intent method,…let's use the GCM pub sub class…to subscribe to these topics.…This class handles subscribing and unsubscribing actions…with GCM topics.…So let's add this code below…the send registration to server function,…which is where our to-do marker indicates.…
Programming expert Joe Marini covers how to retrieve and work with a user's location and get continuous location updates with Location services; target and authenticate users and access their profile information with Google Sign-In; and work with the Google Drive API to store and retrieve content. Joe also shows you how to use the Google Places API to get information about places such as addresses, phone numbers, and website URLs, along with how to send messages to individual devices using Google Cloud Messaging. By the end of this course, you should be able to incorporate Google Play services into your own apps and take advantage of the various features it provides.
- Using Google Play services in your Android project
- How the Google Play services life cycle works
- Retrieving the user's location with Location services
- Working with location data
- Performing a geocoding operation
- Using Google Sign-In to access user information
- Storing information with the Google Drive API
- Working with the Google Places API
- Communicating via Google Cloud Messaging (GCM)
Skill Level Intermediate
1. Play Services Basics
2. Location Services
3. Google Sign-In
4. Google Drive
5. The Places API
6. Google Cloud Messaging
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.