Reputation: 1490
I'm following the official documentation to implement a native iOS plugin for ionic. What I'm a bit confused about is where the native code should be placed. Should it be under plugins or platforms/ios. Any tutorial explaning how to implement native plugins for iOS on cordova would be helpful.
Thanks
Update:
When I try to call
window.echo("echome", function(echoValue) {
alert(echoValue == "echome"); // should alert true.
});
Its saying TypeError: window.echo is not a function.
Upvotes: 0
Views: 114
Reputation: 2509
If you install a cordova plugin it normally goes to the plugin folder in your application project:
myApp/plugings
If you then do cordova build
or ionic build
the plugin will be 'installed' to the platforms.
So basically cordove takes care for you about the installation process.
Upvotes: 0