Cloud-based service integration for smartphones - Huber Flores

21
MTAT.03.262 Mobile Application Development Cloud-based Service Integration for Smartphones Huber Flores [email protected] Tartu, Estonia, 2013

Transcript of Cloud-based service integration for smartphones - Huber Flores

Page 1: 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

Page 2: Cloud-based service integration for smartphones - Huber Flores

Outline

• Background

• Synchronization Markup Language (SyncML)

• Notification services

• Demo

Huber Flores 2

Page 3: Cloud-based service integration for smartphones - Huber Flores

BACKGROUND

Huber Flores 3

Page 4: Cloud-based service integration for smartphones - Huber Flores

Cloud-based Service Integration

• Data security

• Data mobility

• Augment storage

• Enrich functionality

Huber Flores 4

Page 5: Cloud-based service integration for smartphones - Huber Flores

SYNCML

Huber Flores 5

Page 6: Cloud-based service integration for smartphones - Huber Flores

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

Page 7: Cloud-based service integration for smartphones - Huber Flores

SyncML Architecture

Huber Flores 7

Page 8: Cloud-based service integration for smartphones - Huber Flores

Funambol

Huber Flores 8

Page 9: Cloud-based service integration for smartphones - Huber Flores

Funambol

Huber Flores 9

Page 10: Cloud-based service integration for smartphones - Huber Flores

NOTIFICATION SERVICES

Huber Flores 10

Page 11: Cloud-based service integration for smartphones - Huber Flores

Notification Services

• Push gateway proxy

– Broker

– Subscribers

• Remote executions

• Polling (e.g. HTTP)

• Heartbeats

– Highly integrated and optimized algorithms

Huber Flores 11

Page 12: Cloud-based service integration for smartphones - Huber Flores

Notification Services

Huber Flores 12

Page 13: Cloud-based service integration for smartphones - Huber Flores

Notification Services

Huber Flores 13

Page 14: Cloud-based service integration for smartphones - Huber Flores

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

Page 15: Cloud-based service integration for smartphones - Huber Flores

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

Page 16: Cloud-based service integration for smartphones - Huber Flores

Notification Services

Huber Flores 16

Page 17: Cloud-based service integration for smartphones - Huber Flores

DEMO

Huber Flores 17

Page 18: Cloud-based service integration for smartphones - Huber Flores

Exercise

• Implement a notification client in Android Simulator

Huber Flores 18

Page 19: Cloud-based service integration for smartphones - Huber Flores

QUESTIONS

Huber Flores 19

Page 20: Cloud-based service integration for smartphones - Huber Flores

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

Page 21: Cloud-based service integration for smartphones - Huber Flores

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