m1is / aviarycordovaplugin Goto Github PK
View Code? Open in Web Editor NEWA plugman compatible Cordova plugin for the Aviary photo editor.
A plugman compatible Cordova plugin for the Aviary photo editor.
the iOS SDK provides a session API which can be used to determine if the image has been modified or not. if the image has not been modified, return the original rather than the image output from Aviary.
HI,
DO i need to create separate api-key for android an ios to develop?
can u pls reply me?
Once I retrieve the photo URI and send it to Aviary, I get the following warning:
Warning: Attempt to present <AFSDKViewController: 0xce7ebe0> on <MainViewController: 0xbf4bf40> while a presentation is in progress!
The Editor does not appear. I don't get this issue with iOS6 with the same code.
I have used the plugin for a cordova based app and it works great under both android and iOS until today.
I received a crash report by a user that uses a nexus 5 updated to Android 5.0.1. I was able to reproduce the problem and I think the issue will be resolved if the plugin is updated to the latest Aviary version.
I was wondering if there is an update path to the latest SDK?
Thanks in advance
I've set up a simple application, and I'm calling the sample code on camera success. The app halts, and I'm getting the following error:
2014-02-24 11:40:51.154 MyApp[320:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target <MainViewController: 0x1464f1b0>.'
*** First throw call stack:
(0x2d74be83 0x37aac6c7 0x2ffb81eb 0x3019447b 0x12da0b 0x10a091 0x1099b7 0x109561 0x109747 0x109659 0x2e12fe4b 0x2d716f1f 0x2d7163e7 0x2d714bd7 0x2d67f471 0x2d67f253 0x323b32eb 0x2ff34845 0x10fd57 0x10fd18)
libc++abi.dylib: terminating with uncaught exception of type NSException
Not much to go on here.. Any ideas?
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
I create a new apache/cordova project with VisualStudio15 adn add the plugin from the git repo.
When i'm go to test the app with ripple i got this error message on console:
missing exec:Aviary.show
TypeError: Cannot read property 'show' of undefined(โฆ)
TypeError: Cannot read property 'show' of undefined
at Object.module.exports.exec (ripple.js:40)
at _show (Aviary.js:44)
at Object.Aviary.show (Aviary.js:73)
at onPhotoFileSuccess (index.js:47)
at ripple.js:40
at ripple.js:38
It seem to fail find native function of Aviary.
I also tryed to create the project from cordova cmd, adding plugin and building it for android and install the .apk file in my phone. It doesn't work and force the closing of the app after capturing the image.
In addition i see that when i build the project, in the androidManifest.xml my APIkey been always rewrite with the apiKey you use in you example.
What can be the problem?
Thanks
@m1is I'm trying to install the plugin and failed, because the plugin trying to override the res folder of android platform
Error during processing of action! Attempting to revert... Failed to install 'com.m1is.aviary':Error: Uh oh!
"/.../cordova/platforms/android/res/values-bg/strings.xml" already exists!
Do you have any idea why the plugin trying to override the res folder?
Thanks in advance.
I submit the app which is using this plugin in last year (2014).
but this plugin didn't include 64-bit support. so i can't submit the app to app store now (2015).
Could you resolve this issue asap?
or Could you update this plugin with latest AviarySDK?
Thanks.
I installed the plugin with "cordova plugin add" command and when I run 'cordova.plugins.Aviary.prepareForShow' returns OK.
After running show command, I got this error on Xcode
"WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: Application tried to present a nil modal view controller on target <MainViewController: 0x10de289d0>."
I am using phone gap 3.4.0-0.19.21 and trying to run on IOS simulator
Is using phone gap a problem? Is there a solution for that?
After I add the plugin and run cordova.plugins.Aviary.prepareForShow ,it return OK.
But I run cordova.plugins.Aviary.show ,the app crash with a error message in eclipse :
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gutschat.wedding/com.aviary.android.feather.FeatherActivity}: java.lang.NullPointerException
Thanks for the plugin.
I am using latest cordova version, but please let me know where to put Aviary Key and Secret?
Thanks in advance.
The iOS plugin is passing the compressionQuality
argument to the UIImageJPEGRepresentation
constructor incorrectly.
"The quality of the resulting JPEG image, expressed as a value from 0.0 to 1.0. The value 0.0 represents the maximum compression (or lowest quality) while the value 1.0 represents the least compression (or best quality)."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.