Ionic & Visual Studio Multi Device Hybrid App project


#1

How can I successfully import and convert an Ionic project to a Visual Studio Multi Device Hybrid App project??? I’ve copied all the files inside www folder to VS project root directory but It keeps showing errors with this plugin “com.ionic.keyboard”.

I believe it’s not been recognized by Visual Studio. So how can add this plugin to Visual Studio?
This is the error when I debug in Ripple:

$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if(window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); //ERROR HERE
}
if(window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
}
});
})

This is the error message: Cannot read property ‘Keyboard’ of undefined


#2

Hi

as per MSDN

in config.xml add to config.xml
<vs:feature>com.ionic.keyboard@1.0.3</vs:feature>

and rebuild.