• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Push Notifications - Introduction to PushSharp Seminar
 

Push Notifications - Introduction to PushSharp Seminar

on

  • 28,335 views

Video for this session: http://www.youtube.com/watch?v=MytQ6vqrE5g ...

Video for this session: http://www.youtube.com/watch?v=MytQ6vqrE5g

Code for this session: Code for this session: https://github.com/xamarin/Seminars/tree/master/2012-08-09-PushSharp

Give your feedback on the session: http://bit.ly/xamfeedback

This session goes through an introduction to Push Notifications on iOS, Android and Windows Phone, how this is implemented on the different platforms and how the open source project PushSharp can allow you to stay with C# and make Push Notifications a breeze.

Statistics

Views

Total Views
28,335
Views on SlideShare
11,283
Embed Views
17,052

Actions

Likes
11
Downloads
225
Comments
2

22 Embeds 17,052

http://blog.xamarin.com 10683
http://www.go-mono.com 4991
http://go-mono.com 748
http://www.cnblogs.com 266
http://www.go-mono.org 90
http://go-mono.org 63
http://rritw.com 53
http://www.verious.com 50
http://go-mono.net 35
http://www.haogongju.net 18
http://www.58os.com 10
http://www.tuicool.com 9
http://www.rritw.com 7
http://translate.googleusercontent.com 7
http://ziliao1.com 6
http://www.hanrss.com 5
http://webcache.googleusercontent.com 3
http://www.verydemo.com 3
http://www.docshut.com 3
http://localhost 1
http://cache.baiducontent.com 1
http://127.0.0.1 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

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

12 of 2 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • Book promo code\n
  • \n
  • \n
  • \n
  • \n
  • If only there was a better way... Extra Advance\n
  • \n
  • \n
  • Extra Advance\n
  • Extra Advance\n
  • Extra Advance\n
  • \n
  • \n
  • \n
  • Book promo code\n
  • Book promo code\n

Push Notifications - Introduction to PushSharp Seminar Push Notifications - Introduction to PushSharp Seminar Presentation Transcript

  • Xamarin Seminar 9th August 2012 Copyright 2012 © Xamarin Inc. All rights reserved
  • AgendaPush Notifications - Introduction to Push Sharp Jonathan Dick DBA, Mobile App Developer jondick@gmail.com Twitter: @redth Blog: http://redth.info Professional Android Programming with Mono for Android and .NET/C# (Co-Author) http://amzn.to/MyKMZy Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Push Notifications What are they? Why Should I use them? How do they work? Platform Specifics PushSharp Library Pitfalls to avoid Alternative Ways to Send them Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • What are Push Notifications?• Think Growl but for Mobile• Small bits of information only• Pushed instead of Pulling• Platforms have specific API’s Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Why use Push Notifications?•More realtime than Polling•Scalability - many apps, one connection•Lower resource consumption•Easier than ‘rolling your own’ Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • How do Push Notifications Work?Registering for Push Notifications 1. App requests Push Notification Registration 2. Unique Registration ID generated by provider 3. ID sent to your Cloud ServiceSending a Push Notification 1. Your cloud service builds notification with Unique Registration ID of device 2. Notification is sent to Provider Push Notification Gateway 3. Provider’s Push Notification Gateway delivers the notification to the device Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Platform Specific Implementations•Each platform has its own Implementation • Apple Push Notification Service (APNS) • Google Cloud Messaging (GCM) • Windows Phone Notification Service•Apple is most difficult to work with•Many 3rd party libraries exist • APNS-Sharp, C2DM-Sharp, EasyAPNS, etc. Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Platform Specific Implementations•Each platform has its own Implementation • Apple Push Notification Service (APNS) • Google Cloud Messaging (GCM) • Windows Phone Notification Service•Apple is most difficult to work with•Many 3rd party libraries exist • APNS-Sharp, C2DM-Sharp, EasyAPNS, etc. If only there was a better way... Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • PushSharp to the Rescue!• Open Source - Apache 2.0 License• Abstraction of APNS, GCM, Windows Phone• Fluentish API for building notifications• Sample code: MonoTouch & Mono for Android• Managed Code: MS.NET CLR, Mono, Azure• GitHub - Fork & Contribute• BuddyTV App currently sending 100,000+ / day Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Sample Time !!1! Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Apple Sample Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Apple Sample Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Google Sample Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Google Sample Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Windows Phone 7 Sample Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Windows Phone 7 Sample Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Alternatives to PushSharp•3rd party Push Notification Services • Provide some abstraction • Easier to handle device registrations•Urban Airship - most popular•Parse.com - ‘Channels’ concept•Drawbacks of 3rd Party Services • Do not support all platforms • Another API to code against • Still need your own Cloud Service to generate notifications Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Pitfalls to Avoid• Read the PushSharp GitHub wiki• Read documentation for each platform• Apple will make your cry • Development Provisioning Profile must use Sandbox Server • AdHoc & AppStore Provisioning Profiles must use Production Server • Make sure you export your Push SSL Certificate WITH Private Key• Push Notifications not guaranteed to be delivered• Google C2DM is deprecated - use GCM now Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Questions? Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • ReferencesPushSharp Project Site:https://github.com/redth/PushSharpFollow me on Twitter: @redthMy Blog: http://redth.infoUrban Airship - http://urbanairship.comParse.com - http://parse.com Xamarin Copyright 2012 © Xamarin Inc. All rights reserved
  • Xamarin Seminar Please give us your feedback http://bit.ly/xamfeedback Follow us on Twitter @XamarinHQ 9th August 2012 Copyright 2012 © Xamarin Inc. All rights reserved