

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.
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 Backend | C# Backend | |
|---|---|---|
| Connect | X | O |
| Store data | X | O |
| Single sign-on | X | O |
| Push Notifications | X | Comming soon |
Create mobile service project in Visual Studio.
Install helper library.
PM> Install-Package FxOSHelper
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());
}
Let's deploy the project to Azure!
Setting OAuth IDs.
this is Firefox OS Apps sample code.