I had problems to,
after a lot of messing around I found I did a number of things wrong:
These tips apply for a few issues I’ve had with plugins:
-
make sure
’lib/ngCordova/dist/ng-cordova.min.js’
is after
’lib/ionic/js/ionic.bundle.js’ -
make sure you haven’t removed ‘cordova.js’ and that it comes after the prior ones.
(I did for browser development but you need it for the emulator and mobile device). -
make sure you are inside the ready block:
$ionicPlatform.ready(function() {
$cordovaSplashscreen.hide();
}); -
sometimes (especially the facebook plugin) you need to remove the platform and re add it (takes 5 seconds).
if a plugin gives you errors (like the facebook one):
a) remove the plugin first
b) then remove the platform
c) then add the platform
d) then add the plugin.