Cloud backend for your app/game - in minutes! Store data in Azure SQL. Custom REST API with 24/7 monitoring and management Handle user identities using Twitter / FaceBook / Live / Google+ Push notifications to individual users & dynamic audience segments
First signup! (CC will be required for ID purposes – but default budget is set 0.00) Azure Mobile Services has a free tier that includes up to 500 devices and 500k API calls, and additionally, you can also use the free tier for up to 10 services.
Azure Mobile Services - Pricing Calculator FREE tier: Up to 500 devices, 500 thousand API calls (run up to 10 mobile services)
In Azure portal - Create a new Mobile Service
Set database user/pass
~5 minutes later… Mobile Service should be Ready to use. (Click to select)
Click “Connect existing … app” to see connection strings.
Mobile Service Connection Strings to copy & paste into you app/game script.
Couple of choices for Azure Mobile Services in Unity: - Prime 31 - BitRave
MS platforms can use the Newtownsoft.JSON from within the NuGet package manager in Visual Studio.
Non-MS platforms require $20 JSON.NET plugin to serialize the JSON data. https://www.assetstore.unity3d.com/en/#!/content/11347
JSON .NET for Unity retains the original namespaces and structure of the Newtonsoft Json.Net library with Unity supported features. This means that it will function as a drop-in replacement for the existing Json.Net dll for users who wish to target iOS and Web Player but need to use first class serialization.
Runs across: W8 Store WP8 NB: Runs, but doesn’t connect in the Unity Editor (yet)
Demo Unity Prime Visual Studio 2013 (update 3)
Goto: prime31.com/plugins Windows 8 store > MS Azure Plugin When you click on the “Download Now” button, it will prompt you for your name/email. Submit the form to get the download link to the Unity plugin in your email.
Important! Be sure to install the Azure SDK. (Otherwise you will not be able to compile in Visual Studio)
In Mobile Services quickstart under “Create a new … app” Create a table > “Create TodoItem Table”
In Unity - Create New Project
NB: Download the plugin from email link Open the package to install…
The package will import into the Unity project.
Open “MetroAzure” Scene
Open “MetroAzureDemoUI” Script
Copy & paste Azure Mobile Services Connection Strings (from Azure Mobile Service portal)
NB: Will run, but won’t connect in UnityEditor - We have to ‘build’ the project!
File > Build Settings
Build Settings ‘Add Current’ Scene ‘Switch Platform’ to ‘Windows Store’ (C#, 8.1)
Build Settings > ‘Player Settings’… Under “Metro Unprocessed Plugins” set: Size: 1 Element 0: P31MetroAzure.dll
Connect Azure Service first. Then try adding some items…
Check Azure Mobile Services DATA > TodoItem table to see the demo Todo Items added…
NB: You must ‘connect’ first before using other methods.
Install Mobile Services SDK - http://go.microsoft.com/fwlink/?LinkId=257545&clcid=0x409 In ‘Build Settings’ > ‘Player Settings’: add “P31MetroAzure.dll” to list of "Unprocessed Plugins”. This will ensure Unity's DLL processor doesn't mess with the DLL and cause build errors.
7 Prime API functions
// Prepares the connection to the Azure servers. This must be called before any other methods.
public static void connect( string applicationUrl, string applicationKey )
// Inserts a new item into the database
public static void insert<T>( T item, Action completionHandler )
// Updates an item in the database
public static void update<T>( T item, Action completionHandler )
// Deletes an item from the database
public static void delete<T>( T item, Action completionHandler )
// Queries the database
public static void where<T>( Expression<Func<T,bool>> predicate, Action<List<T>> completionHandler )
// Looks an item up to see if it is in the database
public static void lookup<T>( T item, Action<T> completionHandler )
// Authenticates a user with the service provider. Note that the service provider must first be setup in the Azure web dashboard!
// The completionHandler will return null in the event of a login failure.
public static void authenticateWithServiceProvider( MobileServiceAuthenticationProvider serviceProvider, Action<MobileServiceUser> completionHandler )
• Download & install the Mobile Services SDK
before using the Prime Azure plugin.
• Add "P31MetroAzure.dll" to Unprocessed
Plugins in Player Settings
WinBridge for Windows Store
• Windows store
- trial upgrade
- receipt management
- Windows store debugging
• Native message dialogs
• Native & hardware-accelerated video playback
• 100% open source
Lifetime Dev Center
• No more annual fees!
Prime31 Info http://blogs.msdn.com/b/dave_voyles_for_gaming_html5_and_xbox/archive/2014/08/13/prime-31-