@richardmarais wrote:
I am using Ionic and would like to install the following Cordova plugin.
I follow the instructions, and run:
cordova plugin add cordova-plugin-icloudkvThis adds the following entry to my
config.xml:<plugin name="cordova-plugin-icloudkv" spec="^0.4.1" />So I deploy the code to the xcode iPhone emulator, and:
this.platform.ready().then(() => { alert(JSON.stringify(cordova.plugins)); });displays the following:
Problem
As you can see, the
cordova-plugin-icloudkvis not there.Also
alert(cordova.plugins.iCloudKV);is undefined.Question
How do I install the Cordova plugin so I can access it with Ionic?
Thanks
More info
My package.json contains the following.
"cordova-plugin-inapppurchase": {}, "cordova.plugins.diagnostic": {}, "cordova-plugin-icloudkv": {}As you can see
diagnosticis there and is defined undercordova.plugins. Is the reason I cannot accessicloudkvviacordova.plugins.icloudkvis because it is separated by-'s?Ionic Native is accessing the
cordova-plugin-inapppurchase.
Posts: 2
Participants: 1
