I’m trying to open the instagram app with an image.
I have installed ngCordova, included the JS in my index.html and included the plugin in my app : ngCordova.plugins.instagram
In my controller I added $cordovaInstagram
And now I’m trying to call it
try {
$cordovaInstagram.share(myBase64Image, "test").then(function() {
var alertPopup = $ionicPopup.alert({
title: 'Instagram',
template: 'and now?'
});
}, function(err) {
var alertPopup = $ionicPopup.alert({
title: 'Instagram',
template: 'Error'
});
});
} catch (e) {
var alertPopup = $ionicPopup.alert({
title: 'Instagram',
template: 'Is not installed'
});
}
When I run this in ionic view , I get the popup with “and now?” … but nothing happened.
What am I doing wrong?