Answer the question
In order to leave comments, you need to log in
How to connect cordova plugin to ionic?
The essence of the problem:
...
angular.module('starter.controllers',[])
.controller('AppCtrl',['$scope','$ionicModal','$localstorage','$q','$http','$cordovaMedia', function ($scope, $ionicModal, $localstorage, $q, $http,$cordovaMedia) {
...
...
angular.module('starter', ['ionic','ionic.utils','ngCordova','starter.controllers'])
.run(function($ionicPlatform) {
...
Answer the question
In order to leave comments, you need to log in
Apparently the problem is that I tried to run the plugin functions before the deviceready event and therefore the device functions could not be activated. Why there are no such clarifications (did not find?) - this is a separate question.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question