global azure bootcamp 2015 taichung : mobile service
TRANSCRIPT
About Me•Microsoft MVP (ASP.NET)•TechDays 2014 講師
•MVP 2015 微軟實戰課程日 講師
• html5 & javascript程式開發實戰書籍共同作者
•Study4.TW 社群成員 www.facebook.com/Study4.tw• K.NET 社群成員 www.facebook.com/knet.io•www.dotblogs.com.tw/ian• [email protected]
2
Agenda
4
• 範例會以Windows Phone為例• iOS / Android 可參考Azure 線上文件庫,自行改用相關SDK• http://azure.microsoft.com/zh-
tw/develop/mobile/ios/• http://azure.microsoft.com/zh-
tw/develop/mobile/android/• http://azure.microsoft.com/zh-
tw/develop/mobile/xamarin/
•硬體• 需要一個Data Base Server – 儲存優惠資料
• 需要一台Web Service Server – 對外提供資料取得的服務
•應用程式• Web Service or RESTful Service• 授權驗證(facebook、google、Microsoft account、 Twitter …)• 推播(iOS、android、windows)
9Microsoft Azure
Azure Mobile Service
•基於Cloud,專門為行動平台 APP開發而提供的整合式服務• SQL Database Service• RESTful Service• 整合社群驗證 (Facebook、Google、 Twitter 、 Microsoft
Account)• 推播
•架構於現有的PaaS•可依使用情況進行延展,具有高延展性
11Microsoft Azure
Azure Mobile Service
• .Net Backend - WebAPI + Entity Framework•JavaScript Backend – Node.js
12Microsoft Azure
•Azure SQL Service
• Free 20 MB (All Mobile Service Share)
• Customize RESTful Service (Cross-Platform)
16Microsoft Azure
資料存取
•自製會員管理機制麻煩(帳號管理、個資管理、安全性)
•社群帳號普及(Facebook、Google、 Twitter 、 Microsoft Account)
21Microsoft Azure
Authentication
•Uses oAuth
•Mobile Service is registered with provider to allow auth
• Client calls auth method and passes in provider name
•User ID and token (for Mobile Service) returned to client
22Microsoft Azure
Authentication
•Mobile Service Portal – 識別
•應用程式識別碼/API 金鑰 – Facebook應用程式 ID
•應用程式機密 – Facebook 應用程式密鑰
30Microsoft Azure
•支援主要的行動平台 (Windows Store / Windows Phone、iOS、Android)。
•通知中心提供一貫且統一基礎結構來建立和管理裝置註冊
•高擴充性(millions of pushes in minutes)
36Microsoft Azure
Push Notification
• Get PushChannel
• Register PushChannel
•APP Enable Notification
37Microsoft Azure
Push Notification
• http://goo.gl/9pmxe1
• http://goo.gl/DfYGS2
• http://goo.gl/FfzFJZ
• http://goo.gl/ZvyvaK
39Microsoft Azure
Reference