hdolder.com srl  

Software R&D
 

   hdc Home    |    Content    |    Blog    |    Director    |    Contact    |    mail us   

 

M&P H5J Device Hosted Applications

Posted on April 25, 2014 by Herman Dolder
 

With the new Version 8 ("2014") of M&P normal 'server-hosted' H5J applications can be installed as 'native' applications in a large number of devices and operating systems.

The server-hosted H5J applications become 'device-hosted' by using Apache-Cordova (see Wikipedia ).

Apache-Cordova is basically a portable 'virtual machine' capable of operating in different operating systems providing a common API for all of them.

Apache-Cordova allows to 'package' H5J server-hosted applications creating a different package for each target platform and in each package we include an specific adapter module provided by M&P.

In the original server-hosted applications just a single line of code is added (for referencing the adapter module) and the added sentence is the same for all packages.

Currently the 'device-hosted' facility of M&P H5J is tested successfully on Windows 8.1/WinRT, Firefox OS, Windows Phone 7.X and Windows Phone 8.

M&P allows to combine both modalities, server-hosted and device-hosted, in any application.
 

Demo of M&P h5J
running in WP7.8
 

Apache-Cordova Portability

Target OS

Tested with
M&P H5J

Android

-

Bada

-

BlackBerry  
Firefox OS

YES

iPhone

-

Symbian

-

Tizen

-

Ubuntu Touch

-

webOS

-

Windows 7

-

Windows 8

-

Windows 8 / WinRT

YES

Windows Phone 7.X

YES

Windows Phone 8

YES

Device APIs

The Cordova Device APIs have access to native device APIs. They allow to access the following device features


Cordova uses a plugin architecture to implement device APIs. These APIs are, in most cases, very similar to HTML5 APIs. Some examples of use are included in [1].

M&P Adapter Modules

The M&P Adapter Modules contain constants and specific code for the target platforms: code for startup, tombstoning, treatment of paths and local on-demand downloading of data and plugins from the package.

How we develop

Currently we use

  • Windows 8.1
  • Visual Studio 2012/2013
  • TypeScript 1.0
  • Apache-Cordova 3.2
  • M&P 2014


and our primary target platform for testing is Windows/RT 8.1

See also


References

  1. 1. Building Cordova apps for Firefox OS

 

External Links

 

 

 

 

TBW The BLOCKS World ©2015  hdolder.com srl
C40424A
2015-06-26