SlideShare a Scribd company logo
Windows Azure Mobile Services を使った  
 Android/iOS アプリケーションの構築


佐藤直⽣生  @satonaoki                 鈴鈴⽊木  章太郎郎  @shosuz
Windows  Azure  テクニカルエバンジェリスト     テクニカルエバンジェリスト  兼  MTC  アーキテクト
http://satonaoki.wordpress.com/   http://blogs.msdn.com/b/shosuz
⽇日本マイクロソフト株式会社                    ⽇日本マイクロソフト株式会社
Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築
Windows Azure とは
ミ
アプリケーション                                                                                                                             ド
                                                                                                                                     ル
                                                                                                                                     ウ
ネットワーク                Traffic Manager                            Connect                             Virtual Network                 ア
                          (Public Preview)                    (Public Preview)                        (Public Preview)



キャッシュ                                 認証                                                システム連携                                      Media
                                                                    AD                                                             Services

        占有型                                                       Azure
                    共有型
 CDN   キャッシュ                                                 Active Directory                                   キュー
                   キャッシュ                 アクセス制御
       (Preview)                                                (Preview)                サービス  バス


                                               RDB                                                                                   HPC
データ
                   Blob         Table
                                               関連        レポート
                                                                            Datasync
                                                                            (Preview)
                                                                                             Import/Export
                                                                                                                 PIT Restore
                                                                                                               (Limited Preview)
        RDB

                                                                                                                                   Hadoop

ホスティング
                                                                                                                                   Service
                                                                                                                                   (Preview)
                                                    Virtual Machines                Websites            Mobile Services
                            Cloud Services           (Public Preview)             (Public Preview)       (Public Preview)


                                             Windows Azure                                              ファブリック
管理理                                          管理理ポータル                                                    コントローラ
Windows Azure
Mobile Services とは
http://www.windowsazure.com/mobile   Windows 8、iOS、Windows Phone 8、Android

                                     データ
Github
https://github.com/WindowsAzure/
azure-mobile-services


Get started with Mobile
Services for Android
http://www.windowsazure.com/en-us/
develop/mobile/tutorials/get-started-
android/
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/
SQL  サーバーの利利⽤用と
サーバーロジックの開発
http://msdn.microsoft.com/en-us/library/windowsazure/jj554226.aspx
プッシュ通知機能の開発
Windows 8



            (2)

                  (3)
     (1)



            (3)
認証連携機能の開発
Live Connect ポータル
                   https://manage.dev.live.com/Applications/
                   Index  




  アプリケーション キーを持つ
  ユーザー(デフォルト値)
まとめ
Windows 8、iOS、Windows Phone 8、Android

データ
Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築
Appendix
・データアクセス、プッシュ通知、認証サポート
  Windows 8、Windows Phone 8 SDK、iOS SDK SDK、Android
SDK

・強⼒力力なサーバーサイドスクリプトのサポート
  プッシュ通知、バリデーション、プリプロセッシング、
  ポストプロセッシング、他の  Web サービスとの連携
JSON 値          T-SQL 型
数値 (整数、10 進数、   Float(53)
浮動⼩小数点数)
ブール値            Bit
DateTime        DateTimeOffset(3)
⽂文字列列           Nvarchar(max)
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/
複雑なフィルタリングの例例

Supported Modules + Globals
function  read(query,	
  user,	
  request)	
  {
        query.where(function	
  (userId)	
  {
                   mssql
                return	
  this.UserId	
  ==	
  userId;
        },	
  user.userId);
                   request
        request.execute();
}	
  
                   console
function	
  read(query,	
  user,	
  request)	
  {

                
                   push
        query.where(function	
  (userId)	
  {
                 return	
  this.UserId	
  ==	
  userId	
  &&
                   tables
                            (this.Category	
  ==	
  "Fiction"	
  ||	
  this.Category	
  ==	
  "Action")	
  &&
                              this.Rating	
  >	
  2;
        },	
  user.userId);
                   statusCodes
        request.execute();
 }	
  
 …
Windows 8/Phone 8
var table =

                                               iOS
         MobileService.GetTable <Apartment>;
var Apartments = await table
  .where(a => a.Bedrooms > 2)
  .ToListAsync();                              table = [client getTable : @”apartment”];
                                               NSPredicate* pred = [NSPredicate
                                                   predicateWithFormat:@”bedrooms > 2”];

Android (例例)                                   [tableReadWhere : pred
                                                   completion : ^(NSArray* results,
MobileTable <Apartment> table =                                    NSInteger count,
   service.gettable(Apartment.class);                              Nerror* err) {
List<Apartment> apartments =                        //…
   table.where()                               }];
        .gt(“bedrooms”, 2)
        .select();
push.wns



           push.mpns
Live Connect ポータル
                                               https://manage.dev.live.com/Applications/
                                               Index  




http://msdn.microsoft.com/ja-JP/windows/apps
Windows  ストアアプリポータル
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, });
Visual Studio では  Intellisense  で  Identity Provider  を選択可能
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) {
         //…
    }];
}
http://blogs.msdn.com/b/shosuz/archive/2013/01/03/sendgrid-windows-azure-
mobile-services.aspx
診断   拡張 –
     コンピューティング

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




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




  プレビュー期間中は  SLA  なし。S  インスタンスのみ使⽤用可能。プレビュー期間中は、通常の従
  量量課⾦金金料料⾦金金から  33%  割引で予約済みインスタンスにアップグレード可能。
$
共有インスタンス      予約済みインスタンス
(マルチテナント環境)   (プライベート VM)
S インスタンスのみが   S インスタンスのみが
使⽤用可能なサイズ。    使⽤用可能なサイズ。     99.9%
複数購⼊入が可能      複数購⼊入が可能
パブリック プレビュー   プレビューの料料⾦金金は
公開時は無料料       Web サイトと同じ
              割引料料⾦金金になる
Resources
Mobile Services Developer Portal




http://www.windowsazure.com/mobile   34
Event Buddy(iOS)



Tic Tac Toe Leaderboard  
(iOS/Android)


Feedback (iOS/Android)
MiniBlog
http://msdn.microsoft.com/ja-jp/
windowsazure/hh697503
http://blogs.msdn.com/b/shosuz/archive/2013/01/11/windows-‐‑‒azure-‐‑‒new-‐‑‒code-‐‑‒samples-‐‑‒and-‐‑‒
tutorials.aspx                                                                                            37

More Related Content

PDF
クラウド・アプリケーション・モデリングへのアプローチ
PDF
S91 microsoft azure 支払いについて
PDF
S93 Microsoft Azure サービスの管理
PDF
S90 Microsoft Azure 料金について
PDF
Windows Azure Community Open Day 2012
PDF
CommunityOpenDay2012名古屋セッション資料
PDF
MashupAward7 Microsoft Presentation
PDF
クラウド・アプリケーション・モデリングへのアプローチ
S91 microsoft azure 支払いについて
S93 Microsoft Azure サービスの管理
S90 Microsoft Azure 料金について
Windows Azure Community Open Day 2012
CommunityOpenDay2012名古屋セッション資料
MashupAward7 Microsoft Presentation

Similar to Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築 (20)

PPTX
第29回 SQL Server 勉強会 (JSSUG) - Azure Synapse Analytics 概要
PDF
【de:code 2020】 Azure Synapse Analytics 技術編 ~ 最新の統合分析プラットフォームによる新しい価値の創出(後編)
PPTX
今後のビジネス モデルに対応する Azure プラットフォーム技術の活用
PDF
Synquery ja
PDF
Windows azure mobile services による mobile + cloud アプリケーション超高速開発
PDF
RWC2012(ワコムアイティ&テクノプロジェクト)
PPTX
非公式PaaS勉強会~新宿d社会議室
PDF
FukuokaCloud_Azure
PDF
TOUA M2M Solutions powered by Cloudian (Cloudian Summit 2012)
PPTX
Mashup Award 7 Caravan in Fukuoka
PDF
トレジャーデータのバッチクエリとアドホッククエリを理解する
PDF
[Cloud OnAir] Talks by DevRel Vol. 1 インフラストラクチャ 2020年7月30日 放送
PDF
ドメイン駆動設計 ( DDD ) をやってみよう
PDF
LTEモバイルクラウドセミナ[講演1] R 20101116
PDF
東北クラウド実践カンファレンス2011
PDF
PPTX
Interactive connection2
PDF
BIGLOBEが提案するすぐに使えるクラウド活用術
PDF
ゲームだけじゃないHTML5
PDF
XDev2010 WindowsAzure
第29回 SQL Server 勉強会 (JSSUG) - Azure Synapse Analytics 概要
【de:code 2020】 Azure Synapse Analytics 技術編 ~ 最新の統合分析プラットフォームによる新しい価値の創出(後編)
今後のビジネス モデルに対応する Azure プラットフォーム技術の活用
Synquery ja
Windows azure mobile services による mobile + cloud アプリケーション超高速開発
RWC2012(ワコムアイティ&テクノプロジェクト)
非公式PaaS勉強会~新宿d社会議室
FukuokaCloud_Azure
TOUA M2M Solutions powered by Cloudian (Cloudian Summit 2012)
Mashup Award 7 Caravan in Fukuoka
トレジャーデータのバッチクエリとアドホッククエリを理解する
[Cloud OnAir] Talks by DevRel Vol. 1 インフラストラクチャ 2020年7月30日 放送
ドメイン駆動設計 ( DDD ) をやってみよう
LTEモバイルクラウドセミナ[講演1] R 20101116
東北クラウド実践カンファレンス2011
Interactive connection2
BIGLOBEが提案するすぐに使えるクラウド活用術
ゲームだけじゃないHTML5
XDev2010 WindowsAzure
Ad

More from Shotaro Suzuki (20)

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

Windows Azure Mobile Services を使った Android/iOS アプリケーションの構築