Unplugged Framework for Windows 8.1 Store Apps

This repository contains the source code for the Unplugged framework. See the Documentation tab for a more details on how to use this framework.


Mobile apps being able to work offline has become an expected feature of almost all mobile/tablet applications. For data-driven applications, it means that developers will have to store user-specific application data locally, and implement a data synchronization mechanism that keeps the local and server data in sync. By incorporating the Unplugged framework into your code, you can extend your Windows 8.1 Applications to download unstructured data and still function when disconnected from the network. This documentation describes the design and features of this framework that you can incorporate into Windows Store applications.


Software Requirements

To work with the occasionally connected application framework, you must ensure that your system meets the following minimum software requirements:

  1. Windows 8.1 Operating System
  2. Visual Studio 2013
  3. 3rd Party libraries & additional references (set Visual Studio to download required Nuget packages)
    1. SQLite.dll 3.8.4 - Download and install the SQLite Visual Studio extension for Windows 8.1: http://www.sqlite.org/2014/sqlite-winrt81-3080400.vsix
    2. Packages installed via Nuget. This will happen automatically if you have the package manager set up to download dependencies.

Remote Server Setup

In this example, the remote server is responsible for

  1. Providing a SAS for access to your blob storage account
  2. Linking the users device to the blob storage account for that user
  3. Offloading file upload/download directly to the blob storage service

It could be expanded to support distributing users across multiple storage accounts, provide read-only privileges to specific containers, or complete user validation prior to providing a SAS key.

We have included a sample project (TED.WindowsAzure.Unplugged.Mobile.RemoteStorage.AzureBlob) in the toolkit which will help you build a remote file server functionality using Windows Azure blob storage and Mobile Services. If you prefer to use a WebAPI server, you can easily rewrite this script using C# and update WindowsAzureBlobStorage accordingly to call the new API.

In our example we have remote containers of blobs in Windows Azure. We've defined a Windows Azure storage account and secure key in a script running windows Azure Mobile Services. You will need to update the script and keys in the source code with your own windows Azure storage account information.

The script is included in the Script directory of the TED.WindowsAzure.Unplugged.Mobile.RemoteStorage.AzureBlob project

Mobile Services Script Location

You will need to add this script to Windows Azure Mobile Services before the remote storage implementation will work.

Mobile Services Script in Portal

Last edited Mar 27, 2014 at 5:56 PM by mjz115, version 5