Push notifications

There may be times where we create an app that needs to receive messages or events from a remote server. Instead of polling the server for updates, we want the server to let our app know directly.

Getting ready

Push notifications allow a remote server to send a message directly to a specific device. To implement push notifications, we will need a project number and an API key from the Google Developers Console (https://cloud.google.com/console):

  1. First, we have to set up a project on the Google Developers Console if we do not have one already. When logged in, click on Create Project and enter a project name and ID:
    Getting ready

    The Create Project ...

Get Xamarin Mobile Development for Android Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.