Cannot get the ng-cordova Pin Dialog plugin to work


#1

i cannot seem to get this plugin to work.
i keep getting this error in chrome

when i install to an android phone, the popup doesn’t work.
my code:

this should open the pin dialog when the app opens
i have referenced the ng cordova script in my index.html file and also installed the plugin using “cordova plugin add”

i have got other ng cordova plugins to work just not this one!


#2

What error were you getting (your image isn’t appearing)? I managed to add this straight away and all is working fine…


#3

hi there
i found the reason why this was not working for me as i was using ionic view to install the app. after some research i found that ng-cordova plugins will not work with ionic view.
thanks