Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'nativepagetransitions' #163

Open
SeemusDesignAndWeb opened this issue Apr 5, 2017 · 0 comments

Comments

@SeemusDesignAndWeb
Copy link

SeemusDesignAndWeb commented Apr 5, 2017

Does this plugin work with with Phonegap (using Adobe) and no Ionic, Jquery Mobile or anything other than Jquery and bootstrap?

I have added the plugin (renamed to: com.telerik.plugins.nativepagetransitions) folder to my plugins folder.

I have added the following line in config.xml:

<plugin name="com.telerik.plugins.nativepagetransitions" source="plugins.cordova.io" version="0.4.0" />

My code within my function is as follows (page is the element I want to open):

   var options = {
            "href" : page,
            "direction"      : "up", // 'left|right|up|down', default 'left' (which is like 'next')
            "duration"       :  500, // in milliseconds (ms), default 400
            "slowdownfactor" :    4, // overlap views (higher number is more) or no overlap (1), default 3
            "iosdelay"       :  100, // ms to wait for the iOS webview to update before animation kicks in, default 50
            "androiddelay"   :  150  // same as above but for Android, default 50
        };

      window.plugins.nativepagetransitions.slide(
          options,
          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
      );

However when I call the function I get:

Uncaught TypeError: Cannot read property 'nativepagetransitions' of undefined

Have I not installed properly? or do i require another framework?

I am using Phonegap Desktop App with Google Chrome and PhoneGap Developer app to test.

Many thanks for any help

John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant