Cloud toDevice Messaging                 Pathway and the trend  By – Mr.Prajyot Mainkar ( @prajyotm)      C.E.O, SPM Softw...
SO WHAT’s IN PLATEKEY TOPICS                Topics                   Time Duration             Introduction               ...
DATA ACCESS METHODSLETS DISCUSS1. Some apps Provide Seamless Access to data in cloud          Mobile Messages or Mobile Al...
How To Keep the Data onYour Device,Fresh?
POLLINGKey Points1. Simple to Implement2. Device Periodically Asks Server For New Data3. Used widely where the content cha...
But…. Polling Every 5mins can   consume 10% of your          BatteryAnd…     Nobody Likes Apps     That Drain Battery
PushingMinimizing pain of Regular UpdatesPush Technology or Server Push Defines type of internetbased communication where ...
INTRODUCTION TO C2DMBreaking the iceAndroid Cloud to Device Messaging (C2DM) is a service thathelps developers send data f...
THE C2DM Logical Flow                                                                                                Googl...
PEEKING UNDER THE HOODCautious PointsFeature                 Feature Description   Background Service   Honor Background s...
SO WHAT’s THE FLAW?Hmm…Lets Discuss•Message Size : The message size limit is 1024 bytes.•Message Limit : Google limits the...
HANDLING QUOTE LIMITA registration..and that’s allYou can’t do much about the Message Size, but of the quote,             ...
BUILDING CLOUD APPSHEADSTARTER IN M-CLOUD         CLOUD DEVELOPERS         Cloud Developers Issue cloud development       ...
CLOUD - DEVELOPERSTUNING SDK’s The AWS SDK for Android provides a library, code samples, and documentation for developers ...
CLOUD - DEVELOPERSTUNING SDK’s      https://github.com/microsoft-dpe/wa-toolkit-android   https://github.com/microsoft-dpe...
CLOUD ADMINTUNING ADMIN PANELAWS Console is a free Android app that provides a simple administrative interface to the foll...
ARE YOU CLOUD READY?DEMYSTIFYING M-CLOUD  SECURITY CONCERNS                                                               ...
EMERGING TRENDSNFC V/s CLOUD BASED PAYMENTS         Museum Of London [ video]
Can “V/s” be replaced by        “AND”?NFC CLOUD BASED PAYMENTSBy PayBOX NFC
EMERGING TRENDSNFC V/s CLOUD BASED PAYMENTS         Paybox NFC[Video]
CASE STUDYCLOUD AUTOMATION ENGADEMENT         Self-Service Interface                                     Lifecycle Managem...
GET IN TOUCHCONTACT US                        Address:                                  SPM Softwares & Designersf   faceb...
Upcoming SlideShare
Loading in …5
×

Android Cloud to Device Messaging Framework

2,137
-1

Published on

Android Cloud to Device Messaging (C2DM) is a service that helps developers send data from servers to their applications on Android devices.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,137
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Android Cloud to Device Messaging Framework

  1. 1. Cloud toDevice Messaging Pathway and the trend By – Mr.Prajyot Mainkar ( @prajyotm) C.E.O, SPM Softwares & Designers
  2. 2. SO WHAT’s IN PLATEKEY TOPICS Topics Time Duration Introduction 5 mins Cloud to Device Messaging - Breaking 10 mins the Ice Building Mobile Apps on Cloud 5 mins Challenges in M-Clouds 5 mins Emerging Trends : NFC v/s Cloud Based 10 mins Mobile Payments Case study : Cloud Automation 10mins Engagement
  3. 3. DATA ACCESS METHODSLETS DISCUSS1. Some apps Provide Seamless Access to data in cloud Mobile Messages or Mobile Alerts Messages Sent to Phone Background Threads/ Sync
  4. 4. How To Keep the Data onYour Device,Fresh?
  5. 5. POLLINGKey Points1. Simple to Implement2. Device Periodically Asks Server For New Data3. Used widely where the content changes constantly Any New Updates? No Any New Updates? Publisher/Centr No al Server Any New Updates? Yes Smartphone
  6. 6. But…. Polling Every 5mins can consume 10% of your BatteryAnd… Nobody Likes Apps That Drain Battery
  7. 7. PushingMinimizing pain of Regular UpdatesPush Technology or Server Push Defines type of internetbased communication where request for transaction isinitiated by publisher/server1. Constant Connection2. Less Battery Consumption3. Harder to implement Data Publisher/Centr al Server Smartphone
  8. 8. INTRODUCTION TO C2DMBreaking the iceAndroid Cloud to Device Messaging (C2DM) is a service thathelps developers send data from servers to their applications on Android devices.•Uses Simple Google API and Supports Android 2.2 onwards•Uses Existing Connections for Google Services•Allows to send lightweight data messages to apps initiating notice of new dataavailability•C2DM makes no guarantee of delivery or the order of messages•Application need not be running to receive messages.•No building UI for handling messages data https://developers.google.com/android/c2dm/signup
  9. 9. THE C2DM Logical Flow Google Cloud t Web Browser en 9.Remove From the queue e to cli C2DM Messaging ag em es s Server th ev eli pp er JavaScript ssa ge C2DM 8.D a 7.Route the delivery e me e th 6 .Q ueu Messaging Queue 1. Register with email to get the per device registration ID C2DM Interface Client Authentication 5.Authenticate The Request Service ss dre il ad ma en 4.Post message to the device with th e Tok t wi Registration ID and Token ues s Auth req ate tion er n tica . Gen au the word s end pas2.Send Registration ID to server 3.S And Client Authentication Service
  10. 10. PEEKING UNDER THE HOODCautious PointsFeature Feature Description Background Service Honor Background settings, start when network is available Heartbeats Maintain persistent connection with server - Use Heartbeats to detect dead connections Collapse Keys Latest messages replace the old ones with same key Efficiency Minimize Heartbeat frequency, concurrent connection and per connect over head Attenuation Messages may not be delivered to app immediately, so avoid constant radio wake up Delay While Idle Device tells app server when the screen is off. Screen off == Device Idle Avoid Wake up of the device with unnecessary updates
  11. 11. SO WHAT’s THE FLAW?Hmm…Lets Discuss•Message Size : The message size limit is 1024 bytes.•Message Limit : Google limits the number of messages a sender sends in aggregate,and the number of messages a sender sends to a specific device
  12. 12. HANDLING QUOTE LIMITA registration..and that’s allYou can’t do much about the Message Size, but of the quote, Yes! There is a RemedyIf your application needs to send a large number of C2DM Messages than the default 200,000 Messages PerDay, Then answer the followingAre you using C2DM for payload?C2DM is meant as a means to notify your application that there are messages available for it. You shouldNot carry your data payload through C2DM.Are you sending C2DM messages too frequently?If you need to communicate with your application frequently over a short period of time, C2DM is probably notthe best solution. https://developers.google.com/android/c2dm/quotas
  13. 13. BUILDING CLOUD APPSHEADSTARTER IN M-CLOUD CLOUD DEVELOPERS Cloud Developers Issue cloud development techniques to trigger cloud based apps. CLOUD ADMIN If you administer cloud servers or services, you dont need access to a notebook or desktop PC to perform routine administrative tasks. CLOUD END USERS The end users using the cloud apps.
  14. 14. CLOUD - DEVELOPERSTUNING SDK’s The AWS SDK for Android provides a library, code samples, and documentation for developers to build connected mobile applications using Amazon Web Services. 2.A media application that uploads photos, videos, and more to Amazon Simple Storage Service (Amazon S3) for world-wide distribution through Amazon CloudFront. 3.A social game that shares moves, high scores, and other data between devices using Amazon SimpleDB. 4.A messaging client that broadcasts messages between devices using Amazon Simple Queue Service (Amazon SQS) and Amazon Simple Notifications Service (Amazon SNS), without requiring any additional server infrastructure http://aws.amazon.com/sdkforandroid/
  15. 15. CLOUD - DEVELOPERSTUNING SDK’s https://github.com/microsoft-dpe/wa-toolkit-android https://github.com/microsoft-dpe/wa-toolkit-cloudreadypackages
  16. 16. CLOUD ADMINTUNING ADMIN PANELAWS Console is a free Android app that provides a simple administrative interface to the following AmazonWeb Services: Elastic Cloud Computer (EC2), Simple Storage Service (S3), Simple Notification Service(SNS), Relational Database Services (RDS), Route 53 (Amazons Domain Name System Web service), andCloudFront (Amazons Web-hosting service).Its primarily designed for tablets running Honeycomb or IceCream Sandwich, but it also works on Android phones.
  17. 17. ARE YOU CLOUD READY?DEMYSTIFYING M-CLOUD SECURITY CONCERNS INTEROPERATIBILITY Since enterprises deal with sensitive data, Enterprises which allow the BYOD security is of paramount importance policy typically need to deal with interoperability challenges. COLLABORATION INTEGRITY Irrespective of whether it’s private, public or Enterprise users typically need to sync hybrid, a cloud-based offering facilitates their devices with the cloud to maintain collaboration among the key stakeholders. data integrity. ACCESS Enterprise can add a security shield to public and hybrid networks using firewalls and VPNs, providing access across complex cloud
  18. 18. EMERGING TRENDSNFC V/s CLOUD BASED PAYMENTS Museum Of London [ video]
  19. 19. Can “V/s” be replaced by “AND”?NFC CLOUD BASED PAYMENTSBy PayBOX NFC
  20. 20. EMERGING TRENDSNFC V/s CLOUD BASED PAYMENTS Paybox NFC[Video]
  21. 21. CASE STUDYCLOUD AUTOMATION ENGADEMENT Self-Service Interface Lifecycle Management Service Delivery Automation Operational Process Automation Resource Management
  22. 22. GET IN TOUCHCONTACT US Address: SPM Softwares & Designersf facebook.com/prajyotmainkar Zarina Towers,St.Inez,Panaji Goat twitter.com/prajyotm Phone: +91-9822987513 linkedin.com/in/prajyotm Email: prajyotm@msn.com

×