Simon HolzmannMobile Anwendungen - SS 2013
Google Cloud Messaging
Simon HolzmannMobile Anwendungen - SS 2013
Google Cloud Messaging
www.simon-holzmann.de/mobile
Simon HolzmannMobile Anwendungen - SS 2013
Allgemeines
• 60% der Top 100 Apps nutzen GCM• 17 Milliarden messages pro Tag• 60ms durchschnittliche Latenz• Teil der Google Play Services
Simon HolzmannMobile Anwendungen - SS 2013
Cloud to device Messeging (C2DM)
new update
messageupdate ready
Simon HolzmannMobile Anwendungen - SS 2013
Google Cloud Messaging (GCM)
• messages direkt vom GCM-Server• message multicasting (bis zu 1000 clients)• expiring messages (TTL)• message payload (bis zu 4K)
Simon HolzmannMobile Anwendungen - SS 2013
GCM – App Registrieren
registrationrequest
RegID
RegID
Simon HolzmannMobile Anwendungen - SS 2013
GCM – message senden
message
message
Simon HolzmannMobile Anwendungen - SS 2013
GCM – App deinstalieren
message bounce
RegID deleted
message
Simon HolzmannMobile Anwendungen - SS 2013
GCM im Detail
Google API Console:• GCM-Service aktivieren• API Key generieren• ProjectID
Simon HolzmannMobile Anwendungen - SS 2013
GCM im Detail
Simon HolzmannMobile Anwendungen - SS 2013
GCM im Detail
Simon HolzmannMobile Anwendungen - SS 2013
GCM im Detail
Simon HolzmannMobile Anwendungen - SS 2013
GCM im Detail
RegID
Simon HolzmannMobile Anwendungen - SS 2013
GCM im Detail
Simon HolzmannMobile Anwendungen - SS 2013
GCM im Detail
Simon HolzmannMobile Anwendungen - SS 2013
GCM – Die Server-Anwendung
RegID, API Key API Key
ProjectID
message
Simon HolzmannMobile Anwendungen - SS 2013
GCM – Die Server-Anwendung
Simon HolzmannMobile Anwendungen - SS 2013
GCM – Die Server-Anwendung
Simon HolzmannMobile Anwendungen - SS 2013
GCM – Sonstige Features
• Eine App bei mehreren Servern• expiring message (TTL)• delay while idle und cached messages• Zuverlässigkeit (ACK, NAK)• Energiesparend (throttle, delay)• Analyse mit Developer-Console
Simon HolzmannMobile Anwendungen - SS 2013
GCM – neue Features
• persistent connections• upstram messaging• notification synchronisation
Simon HolzmannMobile Anwendungen - SS 2013
Live Demo – Fragen!?
Danke für die Aufmerksamkeit.