Cloud-based service integration for smartphones - Huber Flores
Transcript of Cloud-based service integration for smartphones - Huber Flores
MTAT.03.262 Mobile Application Development
Cloud-based Service Integration for Smartphones
Huber Flores [email protected]
Tartu, Estonia, 2013
Outline
• Background
• Synchronization Markup Language (SyncML)
• Notification services
• Demo
Huber Flores 2
BACKGROUND
Huber Flores 3
Cloud-based Service Integration
• Data security
• Data mobility
• Augment storage
• Enrich functionality
Huber Flores 4
SYNCML
Huber Flores 5
Synchronization Services
• Open protocol based upon standardized XML communication over HTTP POST
– Streaming
• Replication of data
– Mobile-PC (e.g. Kies)
– Mobile-Cloud (e.g. Google sync, Funambol)
• Cloud service integration (e.g. e-mail)
Huber Flores 6
SyncML Architecture
Huber Flores 7
Funambol
Huber Flores 8
Funambol
Huber Flores 9
NOTIFICATION SERVICES
Huber Flores 10
Notification Services
• Push gateway proxy
– Broker
– Subscribers
• Remote executions
• Polling (e.g. HTTP)
• Heartbeats
– Highly integrated and optimized algorithms
Huber Flores 11
Notification Services
Huber Flores 12
Notification Services
Huber Flores 13
Notification Services
• Apple Push Notification Service (APNS)
• Microsoft Push Notification Service (MPNS)
• Google Cloud Messaging (GCM)
• Message Queuing Telemetry Transport (MQTT)
• Extensible Messaging and Presence Protocol (XMPP)
Huber Flores 14
Notification Services
Mechanism Payload (bytes) Mobile platform Average delivery time (seconds)
APNS 256 iOS 0.4
MPNS 4096 Windows Phone 1.2
GCM (aka AC2DM) 1024 Android 1.0
MQTT 1024 Any 0.3
XMPP 1024 Any 0.3
Huber Flores 15
Notification Services
Huber Flores 16
DEMO
Huber Flores 17
Exercise
• Implement a notification client in Android Simulator
Huber Flores 18
QUESTIONS
Huber Flores 19
References
• Suggested readings
– Flores, Huber, and Satish Srirama. Mobile cloud messaging supported by xmpp primitives. In Proceeding of the fourth ACM workshop on Mobile cloud computing and services, pp. 17-24. ACM, 2013.
Huber Flores 20
Homework
• Implement your own Notification Server based on GCM – https://github.com/huberflores/GCMServer
• Record a video showing – API Key
– Sender ID
– Some configuration steps (half at least)
– Receiving a notification in the emulator
• Submit a text file with your video link (e.g. youtube)
Huber Flores 21