RedFox

What is RedFox?

RedFox is project for connecting Firefox OS App for Microsoft Azure Mobile Services.
Microsoft Azure Mobile Services (MAMS) is a Mobile Backend as a Service (MBaaS). You can easily develop mobile applications on Firefox OS by using the following features.

  • Store data in SQL Server, Table Storage, and MongoDB.
  • Single sign-on with Active Directory, Facebook, Twitter, and Google
  • Push notifications.
  • and more
Firefox OS is a very cool Open Source Software, and the applications are developed by HTML, Javascript and CSS.
However MAMS does not support Firefox OS apps. In this project, we develop client/backend libraries development project to enable MAMS on Firefox OS envrionment.


Progress in the development

RedFox can be used features with 'O' in the table. Push notifications will be enable soon.
However it is impossible to connect MAMS by using Node.js backend. Because origin property of Firefox OS App are like app://xxx.contoso.com and MAMS only support http or https protocol.

Node.js BackendC# Backend
Connect XO
Store dataXO
Single sign-onXO
Push NotificationsXComming soon

Developed Libraries


Documentation

Step1

Create mobile service project in Visual Studio.

Step2

Install helper library.

                                PM> Install-Package FxOSHelper
                            

Step3

Edit App_Start\WebApiConfig.cs. The paramater is origin property of Firefox OS App.


public static void Register()
{
    ConfigOptions options = new ConfigOptions();
            
    HttpConfiguration config = ServiceConfig.Initialize(new ConfigBuilder(options));
    // Add following tow rows.
    config.SetCorsPolicyProviderFactory(new FxOSCorsPolicyFactory("app://fxos.contoso.com"));
    config.EnableCors();

    Database.SetInitializer(new MobileServiceInitializer());
}
                            

Step4

Let's deploy the project to Azure!

Step5

Setting OAuth IDs.

App

this is Firefox OS Apps sample code.