SlideShare uma empresa Scribd logo
1 de 43
Baixar para ler offline
http://claudiamobile.cloudapp.net/
http://msdn.microsoft.com/ja-jp/windowsazure/hh965702
http://www.windowsazure.com/mobile   モバイル対応の
                                     アプリを簡単に実装
                                     ユーザー認証機能
                                     プッシュ通知機能
                                     瞬時にデプロイ可能
                                     マルチテナント環境
                                     から専用環境に
                                     必要に応じて変更可能

                                     Windows 8, iOS,
                                     Windows Phone 8
                                     Android サポート予定
                                     必要に応じて
                                     機能を追加可能
Windows Azure Mobile Services は次の場合に最適です。
多くの機能追加が発表
・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
・データアクセス, プッシュ通知、認証サポート
Windows 8、Windows Phone 8 SDK
iOS SDK SDK
Android SDK (近日登場予定)

・強力なサーバーサイドスクリプトのサポート
プッシュ通知、バリデーション、プリプロセッシング、
ポストプロセッシング、他の Web サービスとの連携
デモ
Supported Modules + Globals
   mssql
               mssql.query('select top 1 * from statusupdates',
   request          { success: function(results) {
   console                console.log(results);
                          }
   push             }
   tables      );
   statusCodes
複雑なフィルタリングの例

Supported Modules + Globals
function read(query, user, request) {

      mssql this.UserId == userId;
    query.where(function (userId) {
        return

      request
    }, user.userId);
    request.execute();

      console user, request) {
}

function read(query,
      push this.UserId == userId &&
    query.where(function (userId) {
        return
      tablesthis.Rating > == "Fiction" || this.Category == "Action") &&
               (this.Category
                              2;

      statusCodes
    }, user.userId);
    request.execute();
}
…
JSON 値          T-SQL 型
数値 (整数、10 進数、   Float(53)
浮動小数点数)
ブール値            Bit
DateTime        DateTimeOffset(3)
文字列             Nvarchar(max)
Windows 8/Phone 8
var table =
         MobileService.GetTable <Apartment>;
var Apartments = await table
  .where(a => a.Bedrooms > 2)
  .ToListAsync();
                                               iOS
                                               table = [client getTable : @”apartment”];
                                               NSPredicate* pred = [NSPredicate
Android (例)                                        predicateWithFormat:@”bedrooms > 2”];
                                               [tableReadWhere : pred
MobileTable <Apartment> table =                    completion : ^(NSArray* results,
   service.gettable(Apartment.class);                              NSInteger count,
List<Apartment> apartments =                                       Nerror* err) {
   table.where()                                    //…
        .gt(“bedrooms”, 2)                     }];
        .select();
サーバー ロジック
 CRUD 操作に関するサーバー
 ロジックの追加           デモ
push.wns



           push.mpns
Windows 8
CurrentChannel = await PushNotificationChannelManager
                        .CreatePushNotificationChannelForApplicaionAsync();
Windows Phone 8
CurrentChannel = new HttpNotificationCannel(“ApartmentPushChannel”);
CurrentChannel.Open();
CurrentChannel.BindToShellToast();

Server Side Script
mpns.sendToast(channel.uri, “New Apartment Added”, apartment.address);
wns.sendToat02(channel.uri,
  {text01 : “New Apartment Added”, text02 : apartment.address, });
Live Connect ポータル
                                               https://manage.dev.live.com/Applications/Index




http://msdn.microsoft.com/ja-JP/windows/apps
Windows ストアアプリポータル
プッシュ通知
         デモ
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);
       }
     });
    ・・・・・                                                                      20
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);
          }
        });
      });
  }
});
                                                                                 21
• 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/

                                                                                   22
http://msdn.microsoft.com/en-US/live/ff621310
https://dev.twitter.com/
                                       https://dev.twitter.com/apps/new




Register your apps for Twitter login with Mobile Services
http://www.windowsazure.com/en-us/develop/mobile/how-to-guides/register-for-twitter-authentication/
Windows 8 / Windows Phone 8
If (MobileService.CurrentUser == null) {
    var user = await MobileSevice.LoginAsync (
                      MobileServiceAuthenticationProvider.Twitter);


iOS
If (client.currentUser == nil) {
    [client loginViewControllerWithProvider : @”twitter”
              completion : ^(MSUser* user, NSError* err) {
         //…
    }];
}
認証の追加
 迅速な Windows Live への接続   デモ
Sendgrid を利用した
メール送信
しかし…現在はこのアドオンは
米国のみ使用可能な模様

http://www.windowsazure.com/en-us/develop/mobile/tutorials/send-email-with-sendgrid/
Windows Azure
Mobile Services for iOS
Chris Risner                        Xamarin

http://chrisrisner.com/
                                    同サンプル
同サンプル                            https://github.com/xamarin/azure-
https://github.com/WindowsAzure- mobile-services
Samples/MobileServices-iOS-Client
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/
Mobile Services with iOS
  ストレージ操作とTwitter 認証連携     デモ
Windows Azure
Mobile Services for Android
Coming Soon!
診断   拡張 –
     コンピューティング

ログ   拡張 - ストレージ
診断、ログ、拡張
           デモ
10 モバイル
 サービス                   1 GB SQL




                                   WA の無料評価版
                       データベース




 プレビュー期間中は SLA なし。S インスタンスのみ使用可能。プレビュー期間中は、通常の従
 量課金料金から 33% 割引で予約済みインスタンスにアップグレード可能。
99.9%
Windows 8、iOS、Windows Phone 8、


データ
Mobile Services Developer Portal




http://www.windowsazure.com/mobile   40
http://code.msdn.microsoft.com/doto-a-simple-social-todo-7e6ba464
                                                                    41
• 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/

                                                                                   42
http://channel9.msdn.com/Events/TechEd/Europe/2012/AZR310
                                                            43
Windows azure mobile services による mobile + cloud アプリケーション超高速開発

Mais conteúdo relacionado

Semelhante a Windows azure mobile services による mobile + cloud アプリケーション超高速開発

Web リソースを活用した簡単アプリケーション開発(Windows Phone)
Web リソースを活用した簡単アプリケーション開発(Windows Phone)Web リソースを活用した簡単アプリケーション開発(Windows Phone)
Web リソースを活用した簡単アプリケーション開発(Windows Phone)
Akira Onishi
 
Titanium Mobile
Titanium MobileTitanium Mobile
Titanium Mobile
Naoya Ito
 
Pf部2012年1月勉強会.androidsola
Pf部2012年1月勉強会.androidsolaPf部2012年1月勉強会.androidsola
Pf部2012年1月勉強会.androidsola
android sola
 
PF部2011年12月勉強会.androidsola
PF部2011年12月勉強会.androidsolaPF部2011年12月勉強会.androidsola
PF部2011年12月勉強会.androidsola
android sola
 
13016 n分で作るtype scriptでnodejs
13016 n分で作るtype scriptでnodejs13016 n分で作るtype scriptでnodejs
13016 n分で作るtype scriptでnodejs
Takayoshi Tanaka
 
Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築
Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築
Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築
Shotaro Suzuki
 
[DI10] IoT を実践する最新のプラクティス ~ Azure IoT Hub 、SDK 、Azure IoT Suite ~
[DI10] IoT を実践する最新のプラクティス ~ Azure IoT Hub 、SDK 、Azure IoT Suite ~[DI10] IoT を実践する最新のプラクティス ~ Azure IoT Hub 、SDK 、Azure IoT Suite ~
[DI10] IoT を実践する最新のプラクティス ~ Azure IoT Hub 、SDK 、Azure IoT Suite ~
de:code 2017
 
5分でわかったつもりになるParse.com
5分でわかったつもりになるParse.com5分でわかったつもりになるParse.com
5分でわかったつもりになるParse.com
Kenta Tsuji
 

Semelhante a Windows azure mobile services による mobile + cloud アプリケーション超高速開発 (20)

Parse触ってみた
Parse触ってみたParse触ってみた
Parse触ってみた
 
Web リソースを活用した簡単アプリケーション開発(Windows Phone)
Web リソースを活用した簡単アプリケーション開発(Windows Phone)Web リソースを活用した簡単アプリケーション開発(Windows Phone)
Web リソースを活用した簡単アプリケーション開発(Windows Phone)
 
Titanium Mobile
Titanium MobileTitanium Mobile
Titanium Mobile
 
20171108 Tech Summit 2017 最新! Windows 10 Fall Creators Update 新機能とアプリケーション開発
20171108 Tech Summit 2017 最新! Windows 10 Fall Creators Update新機能とアプリケーション開発20171108 Tech Summit 2017 最新! Windows 10 Fall Creators Update新機能とアプリケーション開発
20171108 Tech Summit 2017 最新! Windows 10 Fall Creators Update 新機能とアプリケーション開発
 
Android Lecture #01 @PRO&BSC Inc.
Android Lecture #01 @PRO&BSC Inc.Android Lecture #01 @PRO&BSC Inc.
Android Lecture #01 @PRO&BSC Inc.
 
ボット開発でも DevOps! BotBuilder のテスト手法
ボット開発でも DevOps! BotBuilder のテスト手法ボット開発でも DevOps! BotBuilder のテスト手法
ボット開発でも DevOps! BotBuilder のテスト手法
 
[Java Festa in 札幌 2012] Windows Azure を活用した Windows 8 アプリケーション開発
[Java Festa in 札幌 2012] Windows Azure を活用した Windows 8 アプリケーション開発[Java Festa in 札幌 2012] Windows Azure を活用した Windows 8 アプリケーション開発
[Java Festa in 札幌 2012] Windows Azure を活用した Windows 8 アプリケーション開発
 
Pf部2012年1月勉強会.androidsola
Pf部2012年1月勉強会.androidsolaPf部2012年1月勉強会.androidsola
Pf部2012年1月勉強会.androidsola
 
Data apiで実現 進化するwebの世界
Data apiで実現 進化するwebの世界Data apiで実現 進化するwebの世界
Data apiで実現 進化するwebの世界
 
PF部2011年12月勉強会.androidsola
PF部2011年12月勉強会.androidsolaPF部2011年12月勉強会.androidsola
PF部2011年12月勉強会.androidsola
 
13016 n分で作るtype scriptでnodejs
13016 n分で作るtype scriptでnodejs13016 n分で作るtype scriptでnodejs
13016 n分で作るtype scriptでnodejs
 
Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築
Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築
Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築
 
モバイル開発を支えるAWS Mobile Services
モバイル開発を支えるAWS Mobile Servicesモバイル開発を支えるAWS Mobile Services
モバイル開発を支えるAWS Mobile Services
 
Android gameprogramming
Android gameprogrammingAndroid gameprogramming
Android gameprogramming
 
Azure IoT Edge で Custom Vision
Azure IoT Edge で Custom VisionAzure IoT Edge で Custom Vision
Azure IoT Edge で Custom Vision
 
2022.04.23 .NET 6 -7 時代のデスクトップ アプリケーション開発
2022.04.23 .NET 6 -7 時代のデスクトップ アプリケーション開発2022.04.23 .NET 6 -7 時代のデスクトップ アプリケーション開発
2022.04.23 .NET 6 -7 時代のデスクトップ アプリケーション開発
 
20170703_05 IoTビジネス共創ラボ
20170703_05 IoTビジネス共創ラボ20170703_05 IoTビジネス共創ラボ
20170703_05 IoTビジネス共創ラボ
 
[DI10] IoT を実践する最新のプラクティス ~ Azure IoT Hub 、SDK 、Azure IoT Suite ~
[DI10] IoT を実践する最新のプラクティス ~ Azure IoT Hub 、SDK 、Azure IoT Suite ~[DI10] IoT を実践する最新のプラクティス ~ Azure IoT Hub 、SDK 、Azure IoT Suite ~
[DI10] IoT を実践する最新のプラクティス ~ Azure IoT Hub 、SDK 、Azure IoT Suite ~
 
Android Lecture #04 @PRO&BSC Inc.
Android Lecture #04 @PRO&BSC Inc.Android Lecture #04 @PRO&BSC Inc.
Android Lecture #04 @PRO&BSC Inc.
 
5分でわかったつもりになるParse.com
5分でわかったつもりになるParse.com5分でわかったつもりになるParse.com
5分でわかったつもりになるParse.com
 

Mais de Shotaro Suzuki

Mais de Shotaro Suzuki (20)

This is how our first offline technical event in three years was able to succ...
This is how our first offline technical event in three years was able to succ...This is how our first offline technical event in three years was able to succ...
This is how our first offline technical event in three years was able to succ...
 
Introducing the new features of the Elastic 8.6 release.pdf
Introducing the new features of the Elastic 8.6 release.pdfIntroducing the new features of the Elastic 8.6 release.pdf
Introducing the new features of the Elastic 8.6 release.pdf
 
NET MAUI for .NET 7 for iOS, Android app development
 NET MAUI for .NET 7 for iOS, Android app development  NET MAUI for .NET 7 for iOS, Android app development
NET MAUI for .NET 7 for iOS, Android app development
 
What's New in the Elastic 8.5 Release
What's New in the Elastic 8.5 ReleaseWhat's New in the Elastic 8.5 Release
What's New in the Elastic 8.5 Release
 
Centralized Observability for the Azure Ecosystem
Centralized Observability for the Azure EcosystemCentralized Observability for the Azure Ecosystem
Centralized Observability for the Azure Ecosystem
 
What's New in the Elastic 8.4 Release
What's New in the Elastic 8.4 ReleaseWhat's New in the Elastic 8.4 Release
What's New in the Elastic 8.4 Release
 
Power Apps x .NET ~ Transforming Business Applications with Fusion Development
Power Apps x .NET ~ Transforming Business Applications with Fusion DevelopmentPower Apps x .NET ~ Transforming Business Applications with Fusion Development
Power Apps x .NET ~ Transforming Business Applications with Fusion Development
 
devreljapan2022evaadvoc-final.pdf
devreljapan2022evaadvoc-final.pdfdevreljapan2022evaadvoc-final.pdf
devreljapan2022evaadvoc-final.pdf
 
elastic-mabl-co-webinar-20220729
elastic-mabl-co-webinar-20220729elastic-mabl-co-webinar-20220729
elastic-mabl-co-webinar-20220729
 
Application development with c#, .net 6, blazor web assembly, asp.net web api...
Application development with c#, .net 6, blazor web assembly, asp.net web api...Application development with c#, .net 6, blazor web assembly, asp.net web api...
Application development with c#, .net 6, blazor web assembly, asp.net web api...
 
Discover what's new in the Elastic 8.3 release - Find, monitor, and protect e...
Discover what's new in the Elastic 8.3 release - Find, monitor, and protect e...Discover what's new in the Elastic 8.3 release - Find, monitor, and protect e...
Discover what's new in the Elastic 8.3 release - Find, monitor, and protect e...
 
Building a search experience with Elastic – Introducing Elastic's latest samp...
Building a search experience with Elastic – Introducing Elastic's latest samp...Building a search experience with Elastic – Introducing Elastic's latest samp...
Building a search experience with Elastic – Introducing Elastic's latest samp...
 
Developing .NET 6 Blazor WebAssemby apps with Radzen Blazor component library...
Developing .NET 6 Blazor WebAssemby apps with Radzen Blazor component library...Developing .NET 6 Blazor WebAssemby apps with Radzen Blazor component library...
Developing .NET 6 Blazor WebAssemby apps with Radzen Blazor component library...
 
Elastic x Microsoft Azure Integration Evolution - Integrated Monitoring for S...
Elastic x Microsoft Azure Integration Evolution - Integrated Monitoring for S...Elastic x Microsoft Azure Integration Evolution - Integrated Monitoring for S...
Elastic x Microsoft Azure Integration Evolution - Integrated Monitoring for S...
 
Building 3D mobile apps using Power Apps Mixed Reality controls, Azure SQL Da...
Building 3D mobile apps using Power Apps Mixed Reality controls, Azure SQL Da...Building 3D mobile apps using Power Apps Mixed Reality controls, Azure SQL Da...
Building 3D mobile apps using Power Apps Mixed Reality controls, Azure SQL Da...
 
What's New in the Elastic 8.2 Release - Seamless User Experience with Search -
What's New in the Elastic 8.2 Release - Seamless User Experience with Search -What's New in the Elastic 8.2 Release - Seamless User Experience with Search -
What's New in the Elastic 8.2 Release - Seamless User Experience with Search -
 
Application development with c#, .net 6, blazor web assembly, asp.net web api...
Application development with c#, .net 6, blazor web assembly, asp.net web api...Application development with c#, .net 6, blazor web assembly, asp.net web api...
Application development with c#, .net 6, blazor web assembly, asp.net web api...
 
Building Software Reliability through Distributed Tracing.pdf
Building Software Reliability through Distributed Tracing.pdfBuilding Software Reliability through Distributed Tracing.pdf
Building Software Reliability through Distributed Tracing.pdf
 
Building a Flutter Development Environment with VSCode and Useful Extensions
Building a Flutter Development Environment with VSCode and Useful ExtensionsBuilding a Flutter Development Environment with VSCode and Useful Extensions
Building a Flutter Development Environment with VSCode and Useful Extensions
 
Application development with c#, .net 6, blazor web assembly, asp.net web api...
Application development with c#, .net 6, blazor web assembly, asp.net web api...Application development with c#, .net 6, blazor web assembly, asp.net web api...
Application development with c#, .net 6, blazor web assembly, asp.net web api...
 

Último

Último (7)

NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
 

Windows azure mobile services による mobile + cloud アプリケーション超高速開発

  • 1.
  • 3. http://www.windowsazure.com/mobile モバイル対応の アプリを簡単に実装 ユーザー認証機能 プッシュ通知機能 瞬時にデプロイ可能 マルチテナント環境 から専用環境に 必要に応じて変更可能 Windows 8, iOS, Windows Phone 8 Android サポート予定 必要に応じて 機能を追加可能
  • 4. Windows Azure Mobile Services は次の場合に最適です。
  • 5. 多くの機能追加が発表 ・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
  • 6. ・データアクセス, プッシュ通知、認証サポート Windows 8、Windows Phone 8 SDK iOS SDK SDK Android SDK (近日登場予定) ・強力なサーバーサイドスクリプトのサポート プッシュ通知、バリデーション、プリプロセッシング、 ポストプロセッシング、他の Web サービスとの連携
  • 8.
  • 9.
  • 10. Supported Modules + Globals mssql mssql.query('select top 1 * from statusupdates', request { success: function(results) { console console.log(results); } push } tables ); statusCodes
  • 11. 複雑なフィルタリングの例 Supported Modules + Globals function read(query, user, request) { mssql this.UserId == userId; query.where(function (userId) { return request }, user.userId); request.execute(); console user, request) { } function read(query, push this.UserId == userId && query.where(function (userId) { return tablesthis.Rating > == "Fiction" || this.Category == "Action") && (this.Category 2; statusCodes }, user.userId); request.execute(); } …
  • 12. JSON 値 T-SQL 型 数値 (整数、10 進数、 Float(53) 浮動小数点数) ブール値 Bit DateTime DateTimeOffset(3) 文字列 Nvarchar(max)
  • 13. Windows 8/Phone 8 var table = MobileService.GetTable <Apartment>; var Apartments = await table .where(a => a.Bedrooms > 2) .ToListAsync(); iOS table = [client getTable : @”apartment”]; NSPredicate* pred = [NSPredicate Android (例) predicateWithFormat:@”bedrooms > 2”]; [tableReadWhere : pred MobileTable <Apartment> table = completion : ^(NSArray* results, service.gettable(Apartment.class); NSInteger count, List<Apartment> apartments = Nerror* err) { table.where() //… .gt(“bedrooms”, 2) }]; .select();
  • 14. サーバー ロジック CRUD 操作に関するサーバー ロジックの追加 デモ
  • 15.
  • 16. push.wns push.mpns
  • 17. Windows 8 CurrentChannel = await PushNotificationChannelManager .CreatePushNotificationChannelForApplicaionAsync(); Windows Phone 8 CurrentChannel = new HttpNotificationCannel(“ApartmentPushChannel”); CurrentChannel.Open(); CurrentChannel.BindToShellToast(); Server Side Script mpns.sendToast(channel.uri, “New Apartment Added”, apartment.address); wns.sendToat02(channel.uri, {text01 : “New Apartment Added”, text02 : apartment.address, });
  • 18. Live Connect ポータル https://manage.dev.live.com/Applications/Index http://msdn.microsoft.com/ja-JP/windows/apps Windows ストアアプリポータル
  • 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); } }); ・・・・・ 20
  • 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); } }); }); } }); 21
  • 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/ 22
  • 24. https://dev.twitter.com/ https://dev.twitter.com/apps/new Register your apps for Twitter login with Mobile Services http://www.windowsazure.com/en-us/develop/mobile/how-to-guides/register-for-twitter-authentication/
  • 25. Windows 8 / Windows Phone 8 If (MobileService.CurrentUser == null) { var user = await MobileSevice.LoginAsync ( MobileServiceAuthenticationProvider.Twitter); iOS If (client.currentUser == nil) { [client loginViewControllerWithProvider : @”twitter” completion : ^(MSUser* user, NSError* err) { //… }]; }
  • 26. 認証の追加 迅速な Windows Live への接続 デモ
  • 30. Chris Risner Xamarin http://chrisrisner.com/ 同サンプル 同サンプル https://github.com/xamarin/azure- https://github.com/WindowsAzure- mobile-services Samples/MobileServices-iOS-Client
  • 31. 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/
  • 32. Mobile Services with iOS ストレージ操作とTwitter 認証連携 デモ
  • 33. Windows Azure Mobile Services for Android Coming Soon!
  • 34. 診断 拡張 – コンピューティング ログ 拡張 - ストレージ
  • 36. 10 モバイル サービス 1 GB SQL WA の無料評価版 データベース プレビュー期間中は SLA なし。S インスタンスのみ使用可能。プレビュー期間中は、通常の従 量課金料金から 33% 割引で予約済みインスタンスにアップグレード可能。
  • 37. 99.9%
  • 39. Mobile Services Developer Portal http://www.windowsazure.com/mobile 40
  • 41. • 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/ 42