ngCordova navigator issues


#1

Hello,
I’ve been having issues with ngCordova plugins.
When calling $cordovaSplashscreen.hide();
I’m getting an error in the ngCordova file.
.factory(’$cordovaSplashscreen’, [ function () {

return {
  hide: function () {
    return navigator.splashscreen.hide();
  },

  show: function () {
    return navigator.splashscreen.show();
  }
};

uncaught TypeError: Cannot read property ‘hide’ of undefined

I have everything set up on a linux server. I use phonegap serve to test the app on my nexus 5. Sometimes the navigator functions work, some times they don’t. I’m also having the same issues with $window and device.
If anyone has any advice or any suggestions, please let me know.


#2

+1

for “uncaught TypeError: Cannot read property ‘hide’ of undefined”


#3

+1
Same problem here!


#4

same issue +1! anyone?


#5

Having the same issue as well, did anyone solved this?


#6

same issue, did anyone solved this?


#7

I have same problem after update ngCordova and Ionic for fix iOS9 compatibility.
Any ideas about resolve this problem?


#8

Having the same problem when testing using Karma/ng-describe.