Cordova plugins?


looooove ionic but just understand that cordova plugins do not work out of the box with ionic (bad for me…)

how can i use this plugin please?

cordova plugin add


Should be able to use like so…

.controller('MainCtrl', function($scope, $ionicPlatform){
  $ionicPlatform.ready(function() {
    $scope.playVideo = function(){
      if(window.cordova && window.cordova.plugins.videoPlayer){"");

Just remember that you should wrap it in $ionicPlatform.ready to make sure cordvoa is ready.


thanks it works !


Hi, please how can i use it for multiple URLs ? defined in another Controller with under a scope service ?