Skip to content

Latest commit

 

History

History
180 lines (137 loc) · 12.5 KB

browser-platform.md

File metadata and controls

180 lines (137 loc) · 12.5 KB

Cordova Browser Platform

Date: 2015-10-10
Last Update: 2016-01-20

This blog post is to collate what little information is available for the badly name browser platform. The intent of this platform is to allow testing on a webbrowser with the plugins, and in theory make minimumal changes when deployed to an actual mobile device.

In theory, you can develop with your favorite browser, and fine tune on your mobile device. However, in practice, this is one of the worst documented elements of the Cordova system. This is evidence by by it's omittance from the Cordova Platform Guide, and the lack of any pertinent information in the github README.md file. There is scatter information in the plugins, but tonight this is all i have energy for.

The state of third-party plugins with browser platform is unknown – as of the last update. However, some improvements are noted in cordova-lib for their availability.

plugin supported date supported issues reported
battery yes August 13th, 2015
camera yes September 24, 2014 CB-10139 CB-9780
console yes always available
contacts no -
device yes September 22, 2014
device motion yes September 22, 2014
device orientation yes September 22, 2014
dialogs yes February 10, 2015
filesystem yes April 21, 2015 CB-9832
file transfer yes April 21, 2015
geolocation no -
globalization yes April 21, 2015
inappbrowser yes April 21, 2015
media yes April 21, 2015
media capture yes April 21, 2015
network information yes September 22, 2014
splashscreen yes April 21, 2015
statusbar yes November 24, 2015
vibration yes November 24, 2015
whitelist no -
legacy whitelist no -

There are only three (3) release for browser platform, 4.1.0, 4.0.0, and 3.6.0.

4.1.0

  • Cordova Browser 4.1.0

    • CB-10755 Updated checked in node_modules
    • CB-10650 Non-index content.src causes Splashscreen to be not displayed on browser
    • CB-9836 Add .gitattributes to prevent CRLF line endings in repos
    • CB-9669 Browser exec should have more failsafes
    • Update to use new 'express' implementation of cordova-serve.
    • CB-9658 Improve 'cordova run browser' when browser not installed.
    • CB-9654 'cordova run browser' -> duplicate 'CTRL + C' messages.

4.0.0

3.6.0

We have also released Cordova-Browser 3.6.0, (...) - Initial support for Cordova-Browser platform. (...)

New Platform: Cordova Browser

We have just released Browser as a platform. Add it to your projects with cordova platform add browser. This feature is intended for development purposes. We are working on adding browser support to our core plugins. Ray Camden has put together detailed blog post outlining which plugins we currently support at

What's new in Cordova-Browser

  • Update JS snapshot to version 3.6.0
  • added initial Windows run support
  • No longer need to kill Chrome for macOS
  • added create.bat for Windows support

Working with a limited number of plugins as of

  • Camera
  • Device
  • Device Motion (Accelerometer)
  • Device Orientation (Compass)
  • Network Information

Mention of browser platform Blog by Blog

other than pinned

  • Plugins Release - 24 Nov 2015

    • CB-9426 Fix exception when using device motion plugin on browser platform.
    • CB-9426 Fix exception when using device orientation plugin on browser platform
    • override resolveLocalFileSystemURL by webkitResolveLocalFileSystemURL for browser platform add .project into git ignore list
    • CB-9167 Fix crash on browser window close
    • CB-7965 Add cordova-plugin-statusbar support for browser platform
    • Fixed browser platform to pass tests and combined tests (plugin:vibration - no issue number)
    • Removed call to add proxy and renamed browser file (plugin:vibration - no issue number)
    • CB-7966 Add cordova-plugin-vibration support for browser platform
  • Tools Release: November 6th, 2015 - 06 Nov 2015

    • CB-9587 Check if browser platform added properly before creating parser.
    • CB-9604 Fix error adding browser platform with PlatformApi polyfill.
  • Tools Release: August 13th, 2015

    • Browserify flag for adding plugins at build time vs run time has all tests passings. Please try it out via --browserify. EX. cordova run android --browserify.
    • CB-9420 Fixes malformed require calls in browserify bundle. This closes #270
    • CB-9429 Enables jsdom/browser tests for browserify.
    • Fixed issues with data transforms when using browserify (cordova-js)
    • CB-7953 Add cordova-plugin-battery-status support for browser platform
  • Tools Release: June 10, 2015

    • CB-8441 cordova prepare --browserify now supports 3rd party plugins to build your cordova.js at run time! Try it out!
    • CB-8965 copy platform specific js into platform_www when adding new platforms for browserify workflow
    • CB-6865 added browserify support for plugins with any id (cordova-js)
    • updated browserify dependency to 10.1.3 (cordova-js)
  • Tools Release: April 21, 2015

    • CB-8223 Adds configparser module for exposing config.xml in the Browser platform (cordova-js)
  • Plugins Release and Moving plugins to npm: April 21, 2015

    • CB-7964 browser Add support (plugin:splashscreen)
    • CB-7956 Browser Add support (plugin:file)
    • CB-7957 Browser Add support (plugin:file-transfer)
    • CB-8683 Updated tizen and Browser specific references of old id to new id (globalization)
    • CB-7960 Browser Add support (plugin:globalization)
    • CB-7961 Browser Add support (plugin:inappbrowser)
    • CB-8432 Correct styles for Browser wrapper to display it correctly on some pages (inappbrowser)
    • CB-8683 Updated WP and Browser specific references of old id to new id (inappbrowser)
    • CB-7962 Adds Browser platform support (plugin:media)
    • CB-7963 Browser Add support (plugin:media-capture)
    • CB-8185 Use navigator.onLine as connection information source on Browser platform (network-information)
    • CB-7964 browser Add support (plugin:splashscreen)
  • Tools Release: March 02, 2015

    • CB-8472 Can't find config.xml error installing browser platform after plugin (cordova-lib)
    • CB-8223 Expose config.xml in the Browser platform (cordova-lib)
  • Plugins Release: February 10, 2015

    • browser: Fixed a bug that caused an "cannot call method of undefined" error if the browser's user agent wasn't recognized (plugin:device - no issue number)
    • CB-7955 Add support "browser" platform (plugin:dialogs)
  • Tools Release: January 09, 2015

    • CB-8158 Added hasModule check to browserify code (cordova-lib)
    • browserify: updated require to use symbollist (cordova-lib)
  • Plugins Release: December 9, 2014

    • Browser Changing device.platform to always report the platform as "browser". (plugin:device - no issue number)
  • Apache Cordova CLI 4.0 Release

    • computeCommitId for browserify workflow fixed to handle cli and non cli workflows (cordova-lib)
    • CB-7219 prepare-browserify now supports commitId and platformVersion for cordovajs (cordova-lib)
    • Added tests for browser platform (cordova-lib)
  • Plugins Release: September 22, 2014

    • Added plugin support for the browser (plugin:device)
    • Added support for the browser (plugin:device motion)
    • Updated doc for browser (plugin:device motion)
    • Add support for the browser (plugin:device orientation)
    • Updated docs for browser (plugin:device orientation)
    • Added support for the browser (plugin:network information)