Telerik-Verified-Plugins / NativePageTransitions

Native transitions like Slide and Flip for iOS, Android and Windows Phone
277 stars 107 forks source link

Can't find variable: cordova #166

Closed mralj closed 7 years ago

mralj commented 7 years ago

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:

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)

mralj commented 7 years ago

It seems that there was just problem with Telerik AppBuilder, I haven't changed anything and after couple of hours it just magically works