Hi,
I am getting error Can't find variable: cordova every time I try to navigate to some view using this plugin.
Navigation is initiated after deviceReady is fired, and interestingly it seems that navigation actually occurs and then this error happens.
These are the steps I do:
App starts,
I click button
I am navigated to another screen (I can see in debugger that other screen is loaded)
Instead of content that should have rendered, only white screen is displayed
In console only error I can see is: Can't find variable: cordova
On this line:
cordova.require('cordova/exec').nativeCallback('NativePageTransitions1113744108', 1, null, 0, 0)
Here is how I call the plugin:
window.plugins.nativepagetransitions.slide(
{
"href": path,
"direction": directionClean
},
function(msg) { console.log("success: " + msg) }, // called when the animation has finished
function(msg) { alert("error: " + msg) } // called in case you pass in weird values
);
Neither success callback nor error callback are fired. Also I do have this line in<head> of my index.html:
<script src="cordova.js"></script>
I am trying this on iPhone 6 - iOS 10.2.1.
Cordova version: 6.4.0 (iOS 4.3.1)
Hi, I am getting error
Can't find variable: cordova
every time I try to navigate to some view using this plugin.Navigation is initiated after deviceReady is fired, and interestingly it seems that navigation actually occurs and then this error happens.
These are the steps I do:
Can't find variable: cordova
On this line:cordova.require('cordova/exec').nativeCallback('NativePageTransitions1113744108', 1, null, 0, 0)
Here is how I call the plugin:
Neither success callback nor error callback are fired. Also I do have this line in
<head>
of my index.html:<script src="cordova.js"></script>
I am trying this on iPhone 6 - iOS 10.2.1. Cordova version: 6.4.0 (iOS 4.3.1)