shprink / ionic-native-transitions

[Maintenance only] Native transitions (iOS & Android) for Ionic Framework
https://www.npmjs.com/package/ionic-native-transitions
MIT License
572 stars 112 forks source link

nativepagetransitions is disabled or nativepagetransitions plugin is not present #99

Closed 312977 closed 8 years ago

312977 commented 8 years ago

nativepagetransitions is disabled or nativepagetransitions plugin is not present

why? i am add below code and used ionic-native-transitions.min.js in index.html,

var ngss = angular.module('starter', [ 'ionic', 'starter.controllers', 'starter.Paramcontrollers', 'starter.services', 'ionic-native-transitions', 'starter.routes', 'ngResource', 'starter.Directive', 'ngCordova', 'starter.MyInfocontrollers', 'starter.ProjectListController', 'starter.SellingController' ]) .config(function($ionicNativeTransitionsProvider){ $ionicNativeTransitionsProvider.setDefaultOptions({ duration: 400, // in milliseconds (ms), default 400, slowdownfactor: 4, // overlap views (higher number is more) or no overlap (1), default 4 iosdelay: -1, // ms to wait for the iOS webview to update before animation kicks in, default -1 androiddelay: -1, // same as above but for Android, default -1 winphonedelay: -1, // same as above but for Windows Phone, default -1, fixedPixelsTop: 0, // the number of pixels of your fixed header, default 0 (iOS and Android) fixedPixelsBottom: 0, // the number of pixels of your fixed footer (f.i. a tab bar), default 0 (iOS and Android) triggerTransitionEvent: '$ionicView.afterEnter', // internal ionic-native-transitions option backInOppositeDirection: false // Takes over default back transition and state back transition to use the opposite direction transition to go back });

})
.config(function($ionicNativeTransitionsProvider){
    $ionicNativeTransitionsProvider.setDefaultTransition({
        type: 'slide',
        direction: 'left'
    });
})
.config(function($ionicNativeTransitionsProvider){
    $ionicNativeTransitionsProvider.setDefaultBackTransition({
        type: 'slide',
        direction: 'right'
    });
})
shprink commented 8 years ago

You should start by removing all the config you added. It is all optional.

Only adding 'ionic-native-transitions' as a dependency is required.

I assume you are testing on device?

312977 commented 8 years ago

i removed that, 'ionic-native-transitions' dependency added; and i esting on device andrion4.4 ionic cli 1.1.14 cordova 6.1.1

but still get: nativepagetransitions is disabled or nativepagetransitions plugin is not present

shprink commented 8 years ago

Have you installed the cordova plugin?

312977 commented 8 years ago

I use bower install shprink/ionic-native-transitions

and then add ionic-native-transitions.min.js to index.html ,is wrong?

312977 commented 8 years ago

sorry i am not installed the cordova plugin. now I am successed;thank you very much

shprink commented 8 years ago

I curious about why you missed that part? Is the docs no clear enough?

312977 commented 8 years ago

no i am chinase ,english not very well,

but i thank write like this ,May be more clearly

Requiry step: 1.install cordova plugin 2.npm install ionic-native-transitions or bower install shprink/ionic-native-transitions or.... 3....... This is only my idea ,thanks agin