windows azure mobile services による mobile + cloud アプリケーション超高速開発
DESCRIPTION
ABC(Architect Boot Camp)の時のスライドupload!iOSのプッシュも現在はデモOKTRANSCRIPT
![Page 1: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/1.jpg)
![Page 2: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/2.jpg)
http://claudiamobile.cloudapp.net/
http://msdn.microsoft.com/ja-jp/windowsazure/hh965702
![Page 3: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/3.jpg)
モバイル対応の
アプリを簡単に実装
ユーザー認証機能
プッシュ通知機能
Windows 8, iOS,
Windows Phone 8 Android サポート予定
必要に応じて機能を追加可能
瞬時にデプロイ可能
マルチテナント環境から専用環境に必要に応じて変更可能
http://www.windowsazure.com/mobile
![Page 4: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/4.jpg)
Windows Azure Mobile Services は次の場合に最適です。
![Page 5: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/5.jpg)
・iOS 対応(Xcode、Objective-C)・Facebook / Twitter / Google ID 対応・Sendgrid による e-mail 送信対応・Twilio によるSMS対応・Blob Storage 利用可能・Services Bus利用可能・他…http://weblogs.asp.net/scottgu/archive/2012/10/16/windows-azure-mobile-services-new-support-for-ios-apps-facebook-twitter-google-identity-emails-sms-blobs-service-bus-and-more.aspx
多くの機能追加が発表
![Page 6: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/6.jpg)
・データアクセス, プッシュ通知、認証サポートWindows 8、Windows Phone 8 SDKiOS SDK SDKAndroid SDK (近日登場予定)
・強力なサーバーサイドスクリプトのサポートプッシュ通知、バリデーション、プリプロセッシング、ポストプロセッシング、他の Web サービスとの連携
![Page 7: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/7.jpg)
デモ
![Page 8: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/8.jpg)
![Page 9: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/9.jpg)
![Page 10: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/10.jpg)
Supported Modules + Globals
mssql
request
console
push
tables
statusCodes
mssql.query('select top 1 * from statusupdates',
{ success: function(results) {
console.log(results);
}
}
);
![Page 11: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/11.jpg)
Supported Modules + Globals
mssql
request
console
push
tables
statusCodes
複雑なフィルタリングの例
function read(query, user, request) {query.where(function (userId) {
return this.UserId == userId;}, user.userId);request.execute();
}
function read(query, user, request) {query.where(function (userId) {
return this.UserId == userId &&(this.Category == "Fiction" || this.Category == "Action") &&this.Rating > 2;
}, user.userId);request.execute();
}…
![Page 12: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/12.jpg)
JSON 値 T-SQL 型
数値 (整数、10 進数、浮動小数点数)
Float(53)
ブール値 Bit
DateTime DateTimeOffset(3)
文字列 Nvarchar(max)
![Page 13: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/13.jpg)
Windows 8/Phone 8
Android (例)
iOStable = [client getTable : @”apartment”];
NSPredicate* pred = [NSPredicate
predicateWithFormat:@”bedrooms > 2”];
[tableReadWhere : pred
completion : ^(NSArray* results,
NSInteger count,
Nerror* err) {
//…
}];
var table =
MobileService.GetTable <Apartment>;
var Apartments = await table
.where(a => a.Bedrooms > 2)
.ToListAsync();
MobileTable <Apartment> table =
service.gettable(Apartment.class);
List<Apartment> apartments =
table.where()
.gt(“bedrooms”, 2)
.select();
![Page 14: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/14.jpg)
サーバーロジックCRUD 操作に関するサーバーロジックの追加 デモ
![Page 15: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/15.jpg)
![Page 16: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/16.jpg)
push.wns
push.mpns
![Page 17: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/17.jpg)
Windows 8
Windows Phone 8
Server Side Script
CurrentChannel = await PushNotificationChannelManager
.CreatePushNotificationChannelForApplicaionAsync();
CurrentChannel = new HttpNotificationCannel(“ApartmentPushChannel”);
CurrentChannel.Open();
CurrentChannel.BindToShellToast();
mpns.sendToast(channel.uri, “New Apartment Added”, apartment.address);
wns.sendToat02(channel.uri,
{text01 : “New Apartment Added”, text02 : apartment.address, });
![Page 18: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/18.jpg)
http://msdn.microsoft.com/ja-JP/windows/apps
https://manage.dev.live.com/Applications/Index
Live Connect ポータル
Windowsストアアプリポータル
![Page 19: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/19.jpg)
プッシュ通知デモ
![Page 20: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/20.jpg)
20
function sendNotifications() {
var channelTable = tables.getTable('Channel');
channelTable.read({
success: function (channels) {
channels.forEach(function (channel) {
push.wns.sendTileWidePeekImageAndText02(channel.channelUri, {image1src: ‘http://dev.virtualearth.net/REST/v1/Imagery/Map/Rsoad/' +
item.latitude + ',' + item.longitude + '/15?pp=' +
item.latitude + ',' + item.longitude +
';15&ms=310,150&key= YOUR BING MAPS KEY',
image1alt: 'New Place',
text1: 'New Place',
text2: item.text,
text3: item.latitude + ',' + item.longitude,
}, {
success: function (pushResponse) {
//console.log("Sent push:", pushResponse);
}
});・・・・・
![Page 21: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/21.jpg)
21
push.wns.sendToastImageAndText04(channel.channelUri, {
image1src: 'http://dev.virtualearth.net/REST/v1/Imagery/Map/Road/' +
item.latitude + ',' + item.longitude + '/15?pp=' +
item.latitude + ',' + item.longitude +
';15&ms=150,150&key=YOUR BING MAPS KEY',
image1alt: 'New Place',
text1: 'New Place',
text2: item.text,
text3: item.latitude + "," + item.longitude
}, {
success: function (pushResponse) {
//console.log("Sent push:", pushResponse);
}
});
});
}
});
![Page 22: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/22.jpg)
22
• Windows 8 (Bing Maps for Windows Store Apps)で位置情報を取得• プッシュ通知(トースト/タイル)を当該 Windows Store App を実行中の全ユーザーに送付• Windows 8 デバイスを占有して新規に取得した位置情報を Bing Maps 地図の中心に移動
http://jkebeck.wordpress.com/2012/10/09/windows-azure-mobile-services-maps-more/
![Page 24: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/24.jpg)
Register your apps for Twitter login with Mobile Services
http://www.windowsazure.com/en-us/develop/mobile/how-to-guides/register-for-twitter-authentication/
https://dev.twitter.com/
https://dev.twitter.com/apps/new
![Page 25: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/25.jpg)
Windows 8 / Windows Phone 8
iOS
If (MobileService.CurrentUser == null) {
var user = await MobileSevice.LoginAsync (
MobileServiceAuthenticationProvider.Twitter);
If (client.currentUser == nil) {
[client loginViewControllerWithProvider : @”twitter”
completion : ^(MSUser* user, NSError* err) {
//…
}];
}
![Page 26: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/26.jpg)
認証の追加迅速なWindows Live への接続 デモ
![Page 27: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/27.jpg)
Sendgridを利用したメール送信
![Page 28: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/28.jpg)
しかし…現在はこのアドオンは
米国のみ使用可能な模様
http://www.windowsazure.com/en-us/develop/mobile/tutorials/send-email-with-sendgrid/
![Page 29: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/29.jpg)
Windows Azure Mobile Services for iOS
![Page 30: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/30.jpg)
Chris Risner
http://chrisrisner.com/
同サンプルhttps://github.com/WindowsAzure-Samples/MobileServices-iOS-Client
Xamarin
同サンプルhttps://github.com/xamarin/azure-mobile-services
![Page 31: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/31.jpg)
Github
https://github.com/WindowsAzure/azure-mobile-services
Get started with Mobile Services for iOS
http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-ios/
![Page 32: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/32.jpg)
デモ
Mobile Services with iOSストレージ操作とTwitter認証連携
![Page 33: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/33.jpg)
Windows Azure Mobile Services for AndroidComing Soon!
![Page 34: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/34.jpg)
診断
ログ
拡張 –コンピューティング
拡張 -ストレージ
![Page 35: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/35.jpg)
診断、ログ、拡張
デモ
![Page 36: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/36.jpg)
10 モバイル
サービス 1 GB SQL
データベース
プレビュー期間中は SLA なし。S インスタンスのみ使用可能。プレビュー期間中は、通常の従量課金料金から 33% 割引で予約済みインスタンスにアップグレード可能。
WA の無料評価版
![Page 37: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/37.jpg)
99.9%
![Page 38: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/38.jpg)
Windows 8、iOS、Windows Phone 8、
データ
![Page 39: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/39.jpg)
40http://www.windowsazure.com/mobile
Mobile Services Developer Portal
![Page 40: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/40.jpg)
41
http://code.msdn.microsoft.com/doto-a-simple-social-todo-7e6ba464
![Page 41: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/41.jpg)
42
• Windows 8 (Bing Maps for Windows Store Apps)で位置情報を取得• プッシュ通知(トースト/タイル)を当該 Windows Store App を実行中の全ユーザーに送付• Windows 8 デバイスを占有して新規に取得した位置情報を Bing Maps 地図の中心に移動
http://jkebeck.wordpress.com/2012/10/09/windows-azure-mobile-services-maps-more/
![Page 42: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/42.jpg)
43
http://channel9.msdn.com/Events/TechEd/Europe/2012/AZR310
![Page 43: Windows azure mobile services による mobile + cloud アプリケーション超高速開発](https://reader033.vdocuments.pub/reader033/viewer/2022051323/54831fa3b4af9f820d8b4965/html5/thumbnails/43.jpg)