blob: 01cfdffc7e3511f8076f1b8667505d416cf0cf93 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
<meta name="description" content="We are happy to announce that Cordova 3.4 has been released!This release has various bug fixes for all of our supported platforms.Our friends at Mozilla have...">
<title>
Apache Cordova 3.4.0 - Apache Cordova
</title>
<link rel="SHORTCUT ICON" href="/favicon.ico"/>
<link rel="canonical" href="https://cordova.apache.org/announcements/2014/02/20/cordova-340.html">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="/static/css/main.css">
<link rel="stylesheet" type="text/css" href="/static/css/lib/syntax.css">
<!-- Fonts -->
<!-- For attribution information, see www/attributions.html -->
<link href='https://fonts.googleapis.com/css?family=Raleway:700,400,300,700italic,400italic,300italic' rel='stylesheet' type='text/css'>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
var disqus_developer = 1; // this would set it to developer mode
</script>
<!-- JS -->
<script defer type="text/javascript" src="/static/js/lib/jquery-2.1.1.min.js"></script>
<script defer type="text/javascript" src="/static/js/lib/bootstrap.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '16']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body>
<header>
<a class="scroll-point pt-top" name="top"></a>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/"><img id="logo_top" src="/static/img/cordova-logo-newbrand.svg"/></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<div class="nav_bar_center">
<ul class="nav navbar-nav">
<li >
<a href="/docs/en/latest/">Documentation</a>
</li>
<li >
<a href="/plugins">Plugins</a>
</li>
<li class="active">
<a href="/blog" id="blog_button">Blog<span class="badge" id="new_blog_count"></span></a>
</li>
<li >
<a href="/contribute">Contribute</a>
</li>
<li >
<a href="/contribute/team.html">Team</a>
</li>
<li>
<a href="/#getstarted">Get Started</a>
</li>
<li>
<form class="navbar-form navbar-right" id="header-search-form" role="search">
<div class="input-group">
</div>
</form>
</li>
</ul>
</div>
</div><!--/.navbar-collapse -->
</div>
</nav>
<div id="_fixed_navbar_spacer" style="padding-top:50px"></div>
</header>
<div class="page container">
<div class="blog">
<h1 class="blogHeader">
Blog
<span class="rss">
<img src="/static/img/subscribe.png"><a href="/feed.xml">RSS Feed</a>
</span>
</h1>
<div class="post">
<header>
<div class="title">Apache Cordova 3.4.0</div>
<div class="author">By:
<a href="https://twitter.com/stevesgill">Steve Gill</a>
</div>
<div class="date">20 Feb 2014</div>
</header>
<section>
<div>
<p>We are happy to announce that <code>Cordova 3.4</code> has been released!</p>
<p>This release has various bug fixes for all of our supported platforms.</p>
<p>Our friends at <a href="http://www.mozilla.org/">Mozilla</a> have put together a blog post about getting started with <strong>Cordova Firefox OS</strong>. Check it out at <a href="https://hacks.mozilla.org/2014/02/building-cordova-apps-for-firefox-os/">https://hacks.mozilla.org/2014/02/building-cordova-apps-for-firefox-os/</a>.</p>
<p>To upgrade: (replace <code>android</code> with the platform you want to update):</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>npm install -g cordova
cd my_project
cordova platform update android
</code></pre></div></div>
<p>For non-CLI projects or for pre-3.0 projects, refer to the <a href="http://cordova.apache.org/docs/en/3.4.0/guide_platforms_index.md.html">upgrade guides</a>.</p>
<!--more-->
<h2>What&#39;s new in Android</h2>
<p>Android:
43 commits from 10 authors. Highlights include:</p>
<ul>
<li>Removing <code>addJavascriptInterface</code> support from all Android versions lower
than 4.2 due to security vulnerability</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5917">CB-5917</a> Add a <code>loadUrlIntoView</code> overload that doesn&#39;t recreate plugins.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5889">CB-5889</a> Make update script find project name instead of using &quot;null&quot; for
CordovaLib</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5889">CB-5889</a> Add a message in the update script about needing to import
CordovaLib when using an IDE.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5793">CB-5793</a> Don&#39;t clean before build and change output directory to <code>ant-build</code>
to avoid conflicts with <em>Eclipse</em>.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5803">CB-5803</a> Fix <code>cordova/emulate</code> on <em>Windows</em>.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5801">CB-5801</a> <code>exec</code>-&gt;<code>spawn</code> in build to make sure compile errors are shown.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5799">CB-5799</a> Update version of <code>OkHTTP</code> to 1.3</li>
<li><a href="https://issues.apache.org/jira/browse/CB-4910">CB-4910</a> Update CLI project template to point to <code>config.xml</code> at the root
now that it isn&#39;t in <code>www/</code> by default.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5504">CB-5504</a> Adding <code>onDestroy</code> to app plugin to deregister <code>telephonyReceiver</code></li>
<li><a href="https://issues.apache.org/jira/browse/CB-5715">CB-5715</a> Add <em>Eclipse</em> <code>.project</code> file to create template. For CLI projects,
it adds refs for root <code>www/</code> &amp; <code>config.xml</code> and hides platform versions</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5447">CB-5447</a> Removed <code>android:debuggable=“true”</code> from project template.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5714">CB-5714</a> Fix of android build when too big output stops build with error
due to buffer overflow.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5592">CB-5592</a> Set MIME type for <code>openExternal</code> when scheme is file:</li>
</ul>
<h2>What&#39;s new in iOS</h2>
<ul>
<li><a href="https://issues.apache.org/jira/browse/CB-5794">CB-5794</a> iOS build script: 1. don&#39;t clean 2. recognize <code>--emulator</code> vs <code>--device</code></li>
<li>Don&#39;t show environment vars in build log for copy-www script</li>
<li><a href="https://issues.apache.org/jira/browse/CB-4910">CB-4910</a> Update CLI project template to point to <code>config.xml</code> at the root now that it&#39;s not in www/ by default.</li>
<li>Move <code>.gitignore</code> in template to gitignore (and add the dot in the script).</li>
<li>Fix create script copying project template twice.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5740">CB-5740</a> Use <code>UIScrollViewDecelerationRateNormal</code> by default.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5420">CB-5420</a> Add device model to <code>User-Agent</code> cache key.</li>
<li>Copy <code>config.xml</code> within copy-www-build-step.sh instead of in Copy Resoruces step</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5397">CB-5397</a> Add a <code>--cli</code> option to <code>bin/create</code> that has <code>../../www/</code> <code>../../merges/</code> within the project</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5697">CB-5697</a> Fix <code>location.reload()</code> not firing <code>deviceready</code>.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-4330">CB-4330</a> Fix hash changes being treated as top-level navigations</li>
<li><a href="https://issues.apache.org/jira/browse/CB-3359">CB-3359</a> Parse large JSON payloads on a background thread, and yield when executing multiple commands is taking too long.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5134">CB-5134</a> Fix up bugs with new hash-based <code>exec()</code> bridge.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5134">CB-5134</a> Add <code>location.hash</code> based <code>exec()</code> bridge.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5658">CB-5658</a> Fix whitelist crash when URL path has a space.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5583">CB-5583</a> <code>WebView</code> doesn&#39;t properly initialize when instantiated from a xib</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5046">CB-5046</a>: Adding a <code>defaults.xml</code> template</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5290">CB-5290</a> templates: Updated launch images sizes to include the status bar region</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5276">CB-5276</a> Add ability to load start page from a place other then the bundle folder</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5298">CB-5298</a> Have <code>bin/create</code> run <code>bin/check_reqs</code>.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5328">CB-5328</a> - <code>.gitignore</code> from cordova-ios excludes <code>platforms/cordova/build</code> file</li>
</ul>
<h2>What&#39;s new in Windows Phone 7 &amp; 8</h2>
<ul>
<li><a href="https://issues.apache.org/jira/browse/CB-6041">CB-6041</a> <code>createTemplates</code> should install theme for <em>VS-2013</em> as well</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5219">CB-5219</a> <code>weinre</code> disconnects when <code>history.replaceState</code> is used</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5951">CB-5951</a> Added namespace to <code>config.xml</code></li>
<li>Removed wp7 template ref to non-existent file</li>
</ul>
<p><strong>Windows Phone 7 is now deprecated!</strong> Consider upgrading your projects to
Windows Phone 8 as we will be dropping support completely in version 3.7.0
Read the retrospective here: <a href="http://www.risingj.com/archives/585">http://www.risingj.com/archives/585</a></p>
<h2>What&#39;s new in Windows 8</h2>
<ul>
<li><a href="https://issues.apache.org/jira/browse/CB-5951">CB-5951</a> Added namespace to <code>config.xml</code></li>
<li>Remove template file after create by name</li>
<li><a href="https://issues.apache.org/jira/browse/CB-4533">CB-4533</a> return error code 2 on fail, <a href="https://issues.apache.org/jira/browse/CB-5359">CB-5359</a> get tools version from the registry</li>
</ul>
<h2>What&#39;s new in BlackBerry 10</h2>
<ul>
<li><a href="https://issues.apache.org/jira/browse/CB-6021">CB-6021</a> Add <code>--release</code> to run command</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5723">CB-5723</a> Build script should accept <code>-l</code> param as it does <code>--loglevel</code></li>
<li><a href="https://issues.apache.org/jira/browse/CB-6019">CB-6019</a> Supply default value of <code>--device</code> to the run script</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5660">CB-5660</a> use <code>enabledelayedexpansion</code> to handle )s in path</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5909">CB-5909</a> Fixed issue where <code>check-reqs</code> skipped checking logic on second pass-through - Removed depend</li>
</ul>
<h2>What&#39;s new in FirefoxOS</h2>
<ul>
<li>No significant Changes</li>
</ul>
<h2>What&#39;s new in Ubuntu (touch)</h2>
<ul>
<li>No significant Changes</li>
</ul>
<h2>What&#39;s new in Amazon FireOS</h2>
<ul>
<li>Upleveled changes from Cordova Android</li>
</ul>
<h2>What&#39;s new in Cordova-CLI</h2>
<ul>
<li><a href="https://issues.apache.org/jira/browse/CB-5638">CB-5638</a> Clean-up: remove unreachable <code>info</code> case from function</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5937">CB-5937</a> Add <code>platform check</code> command: Shows platforms that are out of date</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5634">CB-5634</a> Minor refactoring + tests for Android&#39;s orientation preference.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-5634">CB-5634</a> Set Android orientation from <code>config.xml</code></li>
<li>Upleveled amazon_fireos_parser. Making it at par with <code>android_parser.js</code></li>
<li><a href="https://issues.apache.org/jira/browse/CB-5947">CB-5947</a> Throw when trying to create project inside custom www.</li>
<li><a href="https://issues.apache.org/jira/browse/CB-4153">CB-4153</a> Update help.txt about <code>--source</code> -&gt; <code>--copy-from</code></li>
</ul>
<h2>Plugin versions tested with this release</h2>
<ul>
<li>cordova-plugin-battery-status: 0.2.7</li>
<li>cordova-plugin-camera: 0.2.7</li>
<li>cordova-plugin-console: 0.2.7</li>
<li>cordova-plugin-contacts: 0.2.8</li>
<li>cordova-plugin-device: 0.2.8</li>
<li>cordova-plugin-device-motion: 0.2.6</li>
<li>cordova-plugin-device-orientation: 0.3.5</li>
<li>cordova-plugin-dialogs: 0.2.6</li>
<li>cordova-plugin-file: 1.0.0</li>
<li>cordova-plugin-file-transfer: 0.4.1</li>
<li>cordova-plugin-geolocation: 0.3.6</li>
<li>cordova-plugin-globalization: 0.2.6</li>
<li>cordova-plugin-inappbrowser: 0.3.1</li>
<li>cordova-plugin-media: 0.2.8</li>
<li>cordova-plugin-media-capture: 0.2.7</li>
<li>cordova-plugin-network-information: 0.2.7</li>
<li>cordova-plugin-splashscreen: 0.2.7</li>
<li>cordova-plugin-vibration: 0.3.7</li>
</ul>
</div>
</section>
<footer>
<div class="row">
<div class="col-sm-6">
<a href="/news/2014/02/10/plugins-release.html">Previous</a>
<br>
<br>
<a class="title" href="/news/2014/02/10/plugins-release.html">Plugins Release: Feb 10, 2014</a>
<div class="date"> 10 Feb 2014 - By Steve Gill </div>
<p class="content">
The following plugins were updated today: org.apache.cordova.battery-status@0.2.7 org.apache.cordova.camera@0.2.7 org.apache.cordova.console@0.2.7 org.apache.cordova.contacts@0.2.8 org.apache.cordova.device@0.2.8 org.apache.cordova.device-motion@0.2.6...
</p>
</div>
<div class="col-sm-6">
<a href="/news/2014/03/03/plugins-release.html">Next</a>
<br>
<br>
<a class="title" href="/news/2014/03/03/plugins-release.html">Plugins Release: March 3, 2014</a>
<div class="date"> 03 Mar 2014 - By Andrew Grieve </div>
<p class="content">
<!--
NOTE:
the markdownify filter is used here
because posts are rendered in sequence;
that is, the next post's content isn't
yet rendered at the time that this post
is being rendered, so page.next.excerpt
is still in Markdown and not HTML
Reference: https://github.com/jekyll/jekyll/issues/2860
-->
The following plugins were updated today: org.apache.cordova.camera@0.2.8 org.apache.cordova.contacts@0.2.9 org.apache.cordova.file@1.0.1 org.apache.cordova.file-transfer@0.4.2 org.apache.cordova.inappbrowser@0.3.2 org.apache.cordova.media@0.2.9...
</p>
</div>
</div>
</footer>
<div class="disqus">
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = 'cordovablogs';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
</div>
</div>
</div>
</div>
<div class="blue-divider"></div>
<footer>
<div class="container">
<div class="row">
<div class="col-sm-9">
<h1>More Resources</h1>
<div class="row">
<div class="col-sm-4">
<h2>General</h2>
<ul class="nav">
<li>
<a target="_blank" href="https://projects.apache.org/project.html?cordova">Apache Project Page</a>
</li>
<li>
<a href="https://www.apache.org/dyn/closer.cgi/cordova">Source Distribution</a>
</li>
<li>
<a target="_blank" href="https://www.apache.org/licenses">License</a>
</li>
<li>
<a href="/artwork">Artwork</a>
</li>
</ul>
</div>
<div class="col-sm-4">
<h2>Development</h2>
<ul class="nav">
<li><a target="_blank" href="https://github.com/apache?utf8=%E2%9C%93&amp;q=cordova-">Source Code</a></li>
<li><a target="_blank" href="https://github.com/apache/cordova#filing-a-bug">Issue Tracker</a></li>
<li><a target="_blank" href="https://stackoverflow.com/questions/tagged/cordova">Stack Overflow</a></li>
<li><a href="/contact">Mailing List</a></li>
<li><a href="/contribute/nightly_builds.html">Nightly builds</a></li>
</ul>
</div>
<div class="col-sm-4">
<h2>Apache Software Foundation</h2>
<ul class="nav">
<li>
<a target="_blank" href="https://www.apache.org/">About ASF</a>
</li>
<li>
<a target="_blank" href="https://www.apache.org/events/current-event">Events</a>
</li>
<li>
<a target="_blank" href="https://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
</li>
<li>
<a target="_blank" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
</li>
<li>
<a target="_blank" href="https://www.apache.org/security/">Security</a>
</li>
<li>
<a target="_blank" href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy policy</a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-sm-3">
<h1>Contribute</h1>
<p style="padding-top:20px"><strong>Help Cordova move forward!</strong></p>
<p>Report bugs, improve the docs, or contribute to the code.</p>
<a href="/contribute" class="btn btn-lg btn-primary">
Learn More
</a>
<p style="padding-top:20px"> <a href="https://twitter.com/apachecordova" class="twitter-follow-button" data-show-count="false">Follow @apachecordova</a></p>
</div>
</div>
<p class="copyright_text">
Copyright &copy; 2024 <a href="https://apache.org">The Apache Software Foundation</a>, Licensed under the <a target="_blank" href="https://www.apache.org/licenses/">Apache License, Version 2.0</a>.<br/>
Apache and the Apache feather logos are <a target="_blank" href="https://www.apache.org/foundation/marks/list/">trademarks</a> of The Apache Software Foundation.
<br/>
<p>See the <a href="/attributions/">attributions page</a> for other copyright & trademark notices.</p>
</p>
</div>
</footer>
<script defer type="text/javascript" src="/static/js/index.js"></script>
<script defer type="text/javascript" src="/static/js/twitter.js"></script>
</body>
</html>