• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Android Cloud to Device Messaging Framework
 

Android Cloud to Device Messaging Framework

on

  • 2,024 views

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

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

Statistics

Views

Total Views
2,024
Views on SlideShare
2,018
Embed Views
6

Actions

Likes
1
Downloads
0
Comments
0

1 Embed 6

http://www.linkedin.com 6

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Android Cloud to Device Messaging Framework Android Cloud to Device Messaging Framework Presentation Transcript

    • Cloud toDevice Messaging Pathway and the trend By – Mr.Prajyot Mainkar ( @prajyotm) C.E.O, SPM Softwares & Designers
    • 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
    • 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
    • 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 changes constantly Any New Updates? No Any New Updates? Publisher/Centr No al Server Any New Updates? Yes Smartphone
    • 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 request for transaction isinitiated by publisher/server1. Constant Connection2. Less Battery Consumption3. Harder to implement Data Publisher/Centr al Server Smartphone
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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/
    • CLOUD - DEVELOPERSTUNING SDK’s https://github.com/microsoft-dpe/wa-toolkit-android https://github.com/microsoft-dpe/wa-toolkit-cloudreadypackages
    • 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.
    • 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
    • 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 Management Service Delivery Automation Operational Process Automation Resource Management
    • 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