ionic 2 error cordova not available : <p>I am trying to use the cordova GooglePlus plugin in a new ionic 2 project (latest ionic2 version) but I always run into errors regarding cordova.
The plugin is properly installed and shows up in the plugin folder.</p>

<p>One approach I tried is this:</p>

<pre><code>import { GooglePlus } from "ionic-native";
</code></pre>

<p>and then</p>

<pre><code>GooglePlus.login().then(...)
</code></pre>

<p>The login method executes but always throws an error saying <code>"cordova_not_available"</code></p>

<p>I want to test the app with <code>ionic serve</code> on my windows system first before deploying it to my android phone.
How can I make cordova available in the localhost server? From searching I understand that cordova.js is generated and always included in the deploy package for the device.</p>

<p>Another approach I tried is using</p>

<pre><code>window.plugins.googleplus.login(...)
</code></pre>

<p>But this approach does not go through the typescript compiler who does not know anything about a plugins property on the windows object.</p>

<p>How can I fix this?</p>
