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.
Related
I am finding any cordova plugin to PictureInPicture for IOS. There is one plugin only for PictureInPicture which is only developed for android and working fine but I need one for ios as well.
For android I have used the plugin https://www.npmjs.com/package/cordova-plugin-pip.
Please let me know if there is any plugin available or how I can achieve this.
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.
Hello everybody i create application by jQuery mobile and
i use cordova versions 6.3.0,
i have a problem because the plugin is use cordova-plugin-mauron85-background-geolocation needs version "6.3.0",
The problem is: i need push notification plugin com.phonegap.plugins.pushplugin and it needs version "3.7.0"
can use two cordova version On the same app ?.
I am building a hybrid application using Cordova and I am stuck at an email functionality. I am using Katzer email plugin from here https://github.com/katzer/cordova-plugin-email-composer.
cordova.plugins.email.open({ });
This functionality is working fine on my android device and when I tested it in IOS it's not working at all. No error is throwing from the application.
I am using Cordova version 5.4 and my IOS version is IOS 8.
What is wrong here?. Any help would be greatly appreciated.
Note: Will downgrading the version of Cordova helps?
Cordova iOS 4.0.0 has some significant changes, please read this blogpost from Cordova:
http://cordova.apache.org/announcements/2015/12/08/cordova-ios-4.0.0.html
That means, that you should be careful by using plugins, which are older then 08 Dec 2015.
If you make a downgrade, than you should call
cordova clean
That will cleanup project from build artifacts.
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.