AviaryCordovaPlugin icon indicating copy to clipboard operation
AviaryCordovaPlugin copied to clipboard

How to setup the apikey/secret for aviary sdk 4.3

Open The-Chaos opened this issue 11 years ago • 0 comments

First of all thank you very much for that cool plugin.

I currently try to get the aviary sdk to run in combination with a cordova app under iOS.

After installing cordova (3.6.3-0.2.13) and the latest Aviary SDK (4.3.0) and your aviary plugin. I managed to get a simple example app to work with android.

When I try to build the exact same app for iOS with xcode(6.0.1) and i try to call the cordova.plugins.Aviary.show method, I get the following error in the xcode console:

WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: You must provide your Aviary API key before creating an instance of the AFPhotoEditorController. Please see the Aviary SDK documentation for details.

I understand from reading the SDK documentation for iOS that aviary changed the apikey/secret setup to require it to put it in the code:

The API key and secret must be provided before instantiating an instance of AFPhotoEditorController.

and here my problem arises: I do not have any idea on how to submit the apikey/secret to the SDK

The-Chaos avatar Sep 24 '14 16:09 The-Chaos