This source code provides example for receiving push notifications.