Google Developer Group Perugia http://gdg-perugia.org. 16.11.2013 DevFest Central Italy @ Rome



Similar documents
GCM GOOGLE CLOUD MESSAGING

Cloud to Device Messaging with Voice Notification Using GCM

Mobile Push Architectures

GCM for Android Setup Guide

A Case Study of an Android* Client App Using Cloud-Based Alert Service

Using the Push Notifications Extension Part 1: Certificates and Setup

Google Cloud Print Administrator Configuration Guide

1 Overview Configuration on MACH Web Portal 1

Salesforce Mobile Push Notifications Implementation Guide

Sharp.Xmpp, a multiplatform.net XMPP client library, and Android

Salesforce Mobile Push Notifications Implementation Guide

ExpoBadge Mobile App User Guide

CLOUD MESSAGING FOR ANDROID IS A PUSH NOTIFICATION SERVICE

ios SDK possibilities & limitations

Application of Android Mobile Platform in Remote Medical Monitoring System

User Manual for Version Mobile Device Management (MDM) User Manual

Amazon Simple Notification Service. Developer Guide API Version

zevent Mobile Application

1. Introduction Activation of Mobile Device Management How Endpoint Protector MDM Works... 5

SAP Mobile - Webinar Series SAP Mobile Platform 3.0 Security Concepts and Features

Mobile Device Management Version 8. Last updated:

Course Summary. Prerequisites

MOBILE APPLICATIONS AND CLOUD COMPUTING. Roberto Beraldi

REDCap project creation is not possible in the Mobile App

AppConnect FAQ for MobileIron Technology Partners! AppConnect Overview

1. What are the System Requirements for using the MaaS360 for Exchange ActiveSync solution?

Set Up SOS Video Chat and Screen-Sharing

Integrating Mobile apps with your Enterprise

Google Cloud Platform The basics

Introduction to Android Programming (CS5248 Fall 2015)

UP L18 Enhanced MDM and Updated Protection Hands-On Lab

ni.com Remote Connectivity with LabVIEW

icloud for Developers

AT&T Toggle. 4/23/2014 Page i

Android Fundamentals 1

Background. Personal cloud services are gaining popularity

GO!Enterprise Mobile Device Management Android Release Notes

HTTPS hg clone plugin library SSH hg clone plugin library

AkrutoSync 4.0 User Guide

How To Use Kiteworks On A Microsoft Webmail Account On A Pc Or Macbook Or Ipad (For A Webmail Password) On A Webcomposer (For An Ipad) On An Ipa Or Ipa (For

QGDocs Documentation. Release 1.0. QuantumGraph Engineers

Bell Mobile Device Management (MDM)

ZENworks Mobile Management 3.0.x Deployment Quick Start

isecurity+ Android Guide us.zyxel.com Edition 1, 2/2012

EXPOLeads Connect User Guide

The software and tools we use to deploy our ipads

How to enroll Android devices in SoMobile. Content Introduction... 1 Prerequisites... 1 Enrollment... 2

WHITEPAPER. SECUREAUTH 2-FACTOR AS A SERVICE 2FaaS

skype ID: store.belvg US phone number:

DOCUMENT REFERENCE: SQ EN. SAMKNOWS SMARTPHONE-BASED TESTING SamKnows App for Android White Paper. May 2015

How To Make A Cloud Conference Available To Everyone

Product Manual. MDM On Premise Installation Version 8.1. Last Updated: 06/07/15

Building Cross Platform Mobile Apps Dev Tools, MBaaS, Architecture, APIs

Phone Pal: Remote Mobile Access through Short Message Service Prof. Mitul K. Patel 1 Gadhiya Janki D. 2

An Oracle White Paper Dec Oracle Access Management OAuth Service

Copyright 2013, 3CX Ltd.

Symantec Mobile Management 7.2 SP3 MR1 Release Notes

Enterprise Mobility Management Migration Migrating from Legacy EMM to an epo Managed EMM Environment. Paul Luetje Enterprise Solutions Architect

Net2 Anywhere - Installation

Developer's Cookbook. Building Applications with. The Android. the Android SDK. A Addison-Wesley. James Steele Nelson To

NAS 242 Using AiMaster on Your Mobile Devices

Getting Started with Android Programming (5 days) with Android 4.3 Jelly Bean

-Android 2.3 is the most used version of Android on the market today with almost 60% of all Android devices running 2.3 Gingerbread -Winner of

The Cloud Meeting Company. Richard Gatchalian, Sales Executive

Getting Started with the Naviance Student Mobile App

Mobile App Testing Process INFLECTICA TECHNOLOGIES (P) LTD

Android Application Development

ITP 140 Mobile Technologies. Mobile Topics

Building Cloud-powered Mobile Apps

Sophos Mobile Control SaaS startup guide. Product version: 6

DreamFactory on Microsoft SQL Azure

Intermedia Cloud Softphone. User Guide

Sticky Password 7. Sticky Password 7 is the latest, most advanced, portable, cross platform version of the powerful yet

Integration Set Up Guide

Configuration Guide. BES12 Cloud

BES10 Cloud architecture and data flows

Your Mission: Use F-Response Cloud Connector to access Google Apps for Business Drive Cloud Storage

Introduction to Android. CSG250 Wireless Networks Fall, 2008

AudiaFLEX Voice-over-IP Interface. Preliminary Steps. Configuring a Cisco CallManager system to work with Biamp s VoIP-2 card

- CLIENT FAQ - June General Information and Requirements How is Concur for Mobile useful?... 4

Symantec App Center. Mobile Application Management and Protection. Data Sheet: Mobile Security and Management

MS 10978A Introduction to Azure for Developers

Quick Start Guide. Version R9. English

Qsync Install Qsync utility Login the NAS The address is :8080 bfsteelinc.info:8080

Assignment # 1 (Cloud Computing Security)

GO!Enterprise MDM Device Application User Guide Installation and Configuration for Android

WildFire Cloud File Analysis

Cloud Services MDM. Application Management Admin Guide

Kaseya 2. User Guide. Version 7.0. English

ADMINISTRATOR GUIDE FOR USA MOBILITY AMC SELECT

Transcription:

Google Developer Group Perugia http://gdg-perugia.org 16.11.2013 DevFest Central Italy @ Rome

Who am I? +EmanuelePalazzetti Manager Google Developer Group Perugia @palazzem github.com/emanuele-palazzetti emanuele.palazzetti@gmail.com

Wake up your Android with Google Cloud Messaging

Google Cloud Messaging Google Cloud Messaging? Not yet...let s talk about something else

Conference organization!

The problem It s not easy to organize a conference find speakers event marketing prepare website, flyer, etc communicate with attendees: before during after

What? Hey! This is a DevFest! We should talk about code!

Android app DevFest Android app (use case) all italian DevFest list during the year for each DevFest provide talks scheduling some notifications

Android app DevFest Android app (end-user requirements) notifications without any running application notifications across all owned devices real time notifications (delay, rooms swap, etc...) hey! don t exhaust my battery!

Google Cloud Messaging Google Cloud Messaging If you have an Android application and a server you should use it! You can finally throw out the refresh button Even with your third-party application server

Google Cloud Messaging Google Cloud Messaging Integrated with Google Play Services Available back to Froyo (remember about dropped support) NOTE: old GCM standalone implementation is deprecated! Use the GoogleCloudMessaging API instead!

Google Cloud Messaging Pros No battery consumption (server push) App doesn t need to be running to receive messages Reduces update latency Transmit messages to multiple devices

Registration Device Registration Google Cloud Messaging

Registration Registration ID Google Cloud Messaging

Registration Google Cloud Messaging Registration ID Your server

Send a message Message Google Cloud Messaging Message to: registrationid Your server

Google Cloud Messaging What happen if user devices are offline? Google provides automatic queue management When device come back online again, all messages are delivered We can have 100 stored messages (in the queue) and if you reach that limit, all messages are discarded and a special message is delivered NOTE: use the special message to manage a full sync!

Getting started

Application server Application server requirements: Able to communicate with your client (endpoints) Able to store the API key and client registration IDs Able to fire off properly formatted requests to the GCM server Able to generate message IDs to identify each message it sends

Application server Requests to GCM server You can use two different protocols: HTTP or CCS (XMPP) JSON message: HTTP: sent as HTTP POST CCS: message is encapsulated in XMPP message

Send-to-sync message Send-to-sync message with collapse key

Message with payload max 4kb payload useful to avoid further connections!

Android client Android manifest

Android client Some best practices before continue If you are using Play Services SDK, always perform a compatibility check in Activity oncreate() and onresume() Write your own wrapper around these methods:

Android client Request registrationid

Android client About storing your registrationid: It s better to generate a new one if you update your application If you use Google Backup Service, avoid to backup registrationid

Android client Simple BroadcastReceiver to manager GCM messages

Android client Done! Remember: Register your Google API_KEY Configure AndroidManifest.xml Android registration on GCM Send received registrationid to your application server (and store it) Prepare your broadcast receiver Start sending GCM messages from your server!

Hands on code! https://developers.google.com/cloud/samples/mbs/

+EmanuelePalazzetti Manager Google Developer Group Perugia @palazzem github.com/emanuele-palazzetti emanuele.palazzetti@gmail.com Thanks for your attention!

Questions?