implement creative sdk on cordova (ionic) - android

i would like to implement the creativesdk-image editor(old time aviary) in my cordova app.
the plugins i've found are 2 years old and won't run since the sdk that was used is not working anymore(there is a new sdk), the issue is that the new sdk which runs on android required gradle and in my cordova app i ca't use gradle, is there a way to create a plugin for cordova which takes all the compiled classes from a android studio compiled gradle sdk and use it on cordova plugin for android ? (i am new to cordova and android gradle)

Have you tried Angular Aviary SDK? This project is 3 months old in github and provides AngularJS integration through an ngAviary directive, like so:
<a href="#"
target='<selector>'
on-save-button-clicked='onSaveButtonClicked(id)'
on-save='onSave(id, newURL)'
ng-aviary> Edit photo </a>

Quick answer
Try using the new Image Editor UI PhoneGap plugin (Cordova compatible).
There is also a PhoneGap template for this plugin, provided as a reference sample.
More info
The Creative SDK team recently collaborated with PhoneGap to release plugins that are compatible with PhoneGap, Cordova, and Ionic.
There a details on the Creative SDK blog.
You can get a quick overview of everything on offer on the Creative SDK GitHub page's Plugins section.

Related

Use of cordova-plugin-whitelist

In my cordova hello world project, When I run:
cordova platforms add android
it automatically adds cordova-plugin-whitelist plugin.
From plugin docs it is only for android platform.
Supported Cordova Platforms
Android 4.0.0 or above
My questions are:
What is the use of this plugin?
Why only android? Why not other platforms?
As you have mentioned, this plugin is meant only for Android as the plugin source code itself supports only Android platform.
This plugin implements a whitelist policy for navigating the application webview on Cordova 4.0 and above. The use of this plugin is that it provides better security and configurability than earlier versions of Cordova. Infact it is possible to create your own whitelist plugin but it is not recommended unless your app has very specific security policy needs.
Also what I noticed while creating a project in iOS is that it does include cordova whitelist plugin in the plugins folder as its automatically included in config.xml
But what I infer from the official documentation of iOS whitelisting is that for cordova-ios version 4.0 and above this plugin is not required but it's configuration details apply to iOS too.
You can check out this official cordova link for more detailed info on whitelisting and its application on various platforms.

Cordova VS Phonegap plugins

Sorry if it's a stupid question but Google this time didn't help me.
I'm making my apps using cordova. I read that phone gap comes from cordova. I read also that now they are almost the same (if you open phone gap website it talks about cordova and gives cordova examples, so...).
Now my question is: in an app created with cordova, can I use a plugin for phonegap?
Example: just made work pushplugin for cordova (https://github.com/phonegap-build/PushPlugin). Now it says it's deprecated and to use phonegap-push-plugin (https://github.com/phonegap/phonegap-plugin-push) that is also completely different (and, if you're interested, already has problems with beta iOS 9).
So, if I have an app already made with cordova, can I add this new plugin?
Using phonegap plugin add phonegap-plugin-push or cordova plugin add phonegap-plugin-push?
Yes you can use latest push plugin in cordova by using cordova plugin add phonegap-plugin-push, if you have cordova verison >= 5.0 . Cordova and Phonegap both use same plugins almost.You can resolve your confusion about phongap and cordova from this http://phonegap.com/2012/03/19/phonegap-cordova-and-what%E2%80%99s-in-a-name/ ,but in short any plugin which is used in phonegap, can be used for cordova and vice versa. You can find different ids for same plugin like , for example for push plugin
phonegap-plugin-push and cordova-plugin-push-notification, but they both have same source code.
I am quoting a pargraph from post i mentioned :
PhoneGap is a distribution of Apache Cordova. You can think of Apache
Cordova as the engine that powers PhoneGap, similar to how WebKit is
the engine that powers Chrome or Safari.

Can't add crosswalk with ionic cli 1.3.2

I cloned an existing ionic project from git. I have ionic 1.3.2 and cordova 4.2.0. After cloning, i cded into the directory and did an ionic browser add crosswalk. It says that crosswalk was added successfully. Then when i try to do ionic run android, it says
No platforms added.
So i do a ioinic platform add android, which gives me this error:
Failed to install 'org.apache.cordova.engine.crosswalk':CordovaError: Plugin doesn't support this project's cordova-android version. cordova-android: 3.6.4, failed version requirement: >=4.0.0-dev`.
ionic platform add android#4.0.0-dev returns
Unable to fetch platform android#4.0.0-dev: Error: version not found: cordova-android#4.0.0-dev
How do I fix this?
P.S. I am using ubuntu 14.04
The problem is crosswalk browser.
If you revert back to android webview, which sucks, but works.
ionic browser revert android
ionic platform rm android
ionic platform add android
As of today, 4/9/2015. I have been able to go back to the old projects and add crosswalk after updating node runtime, ionic, cordova
Before running ionic run android have you tried adding a directory named www?
It seems that by entering ionic platform add android, it installs the platform from the npm and the latest cordova-android version, which is.... 3.7.1 (currently)
Cordova-android 4.0 is still beta, but there's good news for those who wish to install it. You can download the 4.0 version directly from the apache github repository:
ionic platform add https://github.com/apache/cordova-android.git
There are more bugs along that road, but at least it's a working solution for that bug. It seems that apache still have plenty of issues with plugins compatibility, hopefully they'll overcome them in the next official release.
Update:
Download Intel XDK. This is just an unbelievable tool for developing mobile apps, Intel has really figured it out imo. Built in brackets, emulator, remote debugging, and most important: One button click to build apks with crosswalk for android. All you have to do is importing your www folder and you are good to go!
My app went from sluggish 5fps while scrolling to fully native feel in a click. I'm still in awe. :)

building app in intel xdk: do you need to build for cordova to use cordova apis

I have just learned of intel xdk and i am going over how it works and what are steps to produce apps.. However, i am stuck at some place in understanding it. Can you clarify some stuff for me.
From what i understand:
Intel XDK by default provides apis that extend cordova apis. And therefore cordova apis are included in the intel xdk and if someone wants to use them they just include a script tag with src set as 'cordova.js'. So my question if i am using cordova api instead of intel xdk apis..( i don't know why would someone do this..when both are the same thing so why go an extra trouble of adding cordova script tag then reference etc.) then can i build it as android app and cordova apis will work? or i have to choose cordova android app to make use of cordova apis?
My guess is just choosing to build for android will allow me to use cordova api because this is a big step and it'd have been in docs..maybe it's!?!?!
Yes, you can build as "Android" app and cordova APIs will work as long as "cordova.js" script tag is included. It was mainly meant for building apps with intel.xdk APIs, Cordova 2.9 support was later added, Cordova plugins are not supported in this build.
"Cordova for Android" is in beta release, this is more like an actual Cordova app built using Cordova CLI, Cordova plugins will soon be supported, intel.xdk APIs are not supported. You have to include "cordova.js" script tag for Cordova APIs to work. This will become the default build for Android in future.

Twitter integration in android phonegap

I am trying to develope a twitter login integration using phonegap 2.7.0 i followed a code
http://oodlestechnologies.com/blogs/Twitter-integration-on-PhoneGap-using-ChildBrowser-and-OAuth-for-iOS-and-Android-Platforms
and i included all plugins and twitter frame work but i found that those plugins are not compact able with phonegap 2.7.0. Anybody know which will be the correct twitter plugins,.js,.h,.m files for phonegap 2.7.0 ?
I have added a service and detailed decription on how to make it working for both Android and iOS. It uses InAppBrowser plugin and works for PhoneGap 3.1.0.

Categories

Resources