Differences between revisions 5 and 6
Revision 5 as of 2014-06-06 16:54:11
Size: 1471
Editor: MarcelKinard
Comment: added bullet for docs
Revision 6 as of 2017-03-13 21:14:15
Size: 0
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Adding a New Apache Cordova Platform =

A "native" platform implementation is generally instantiated with the following steps:

 * Instantiate a chromeless browser. Examples include:
  * [[http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebView_Class/|iOS WebView]]
  * [[http://developer.android.com/reference/android/webkit/WebView.html|Android WebView]]
  * The [[https://bdsc.webapps.blackberry.com/html5/|BlackBerry WebWorks framework]] instantiates its own chromeless browser
  * [[http://msdn.microsoft.com/en-us/library/microsoft.phone.controls.webbrowser(v=vs.92).aspx|Windows Phone 7 WebBrowser]]
 * Load packaged www assets (HTML/CSS/JS)
  * TODO: provide examples of this for different platforms
 * Enable a bridge between native framework and the web view
  * TODO: provide examples of this for different platforms
 * Integrate a new platform into the [[http://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=summary|cordova-js project]]. This is a common API for sending messages and triggering error and success callbacks with native framework responses.
 * Ensure the [[http://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;a=summary|mobile-spec tests]] pass
 * Update the [[http://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=summary|documentation]] where applicable, specifically:
  * Quirks sections, such as if some APIs or methods are not supported.
  * Add platform-specific guides.