Knowing that Phonegap is built on top of Cordova.
I am having several issues with Phonegap after trying out different versions
phonegap is poorly documented as lot of their guides are still using Cordova cli, which should be switched to phonegap. Just see their guide on 3.2 and 3.4. 3.2 the website uses phonegap on cli, 3.4 it uses back Cordova on cli.
When building Phonegap 3.4 on eclipse, it is fine. But on Phonegap 3.3, the build process will always replace default files with those I have implemented or amended.
Plugin like pushplugin fails on phonegap 3.3 and 3.4 (is it only me?), there is no support or response in the forum
Any new updates on Cordova, we will have to wait for Phonegap for integration. Which in turns will creates bugs in our Phonegap plugins
Now i am thinking to use solely Cordova. But I have few inquires.
Can Cordova uses the plugin from Phonegap
Can Phonegap uses the plugin from Cordova
Is it worth for the conversion from Phonegap to Cordova? Is Cordova more stable then Phonegap in terms of support, updates and plugin availability?
Which tools have more users? Phonegap or Cordova ?
Can Cordova be compile through cloud? This is important as I do not own a MAC for building ios application.
It is completely worth it to change from phonegap to cordova.
1>Can Cordova uses the plugin from Phonegap or 2>Can Phonegap uses the plugin from Cordova
As phonegap is build on top of cordova,All pluging available for phonegap is available in cordova.Infact phonegap uses many of cordova's plugins,it downloads from cordova's library when you try to download
3>Is it worth for the conversion from Phonegap to Cordova? Is Cordova more stable then Phonegap in terms of support, updates and plugin availability?
It is completely worth the transformation,because cordova is more stable and we have a new version for every single issue reported. The newer phonegap versions are basically build on top of newer cordova versions .
4>Which tools have more users? Phonegap or Cordova ?
Both tools have more or less equal number of users although Iam slightly biased towards cordova .The users who can afford set up of all platforms prompt towards cordova and others towards phonegap.
5>Can Cordova be compile through cloud? This is important as I do not own a MAC for building ios application
No there is no tool to compile a cordova project through cloud.Although I once tried uploading the www folder of cordova into phonegap cloud and got a perfect build for IOS and Android.You can try this with a sample cordova project and if you are satisfied with the result you can migrate to cordova
Here is a link to the Cordova plugin registry http://plugins.cordova.io/#/ . I believe all plugins that work for Phonegap will work Cordova. PhoneGap only has a few plugins available for Build because they have to check to make sure the plugin will work with their system but those plugins will still work in Cordova. Phonegap and Cordova are basically the same. Phonegap is just owned by Adobe and the major difference is that Phonegap has Phonegap Build. I do not believe that Cordova can be complied through cloud tho I could be wrong about that. There are several other cross platform tools you may want to look into if you are not comfortable with Cordova and Phonegap such as appgyver or kivy.
Related
I am trying to use the cordova-plugin-health plugin for a phonegap app I am working on. Whenever I use the app every plugin works but this one. I am using the phonegap mac app to test on an iPhone 6s.
Steps I have taken:
Installed plugin with cordova plugin add cordova-plugin-health --variable HEALTH_READ_PERMISSION='App needs read access' --variable HEALTH_WRITE_PERMISSION='App needs write access' also I did cordova platform add ios
Used navigator.health.requestAuthorization later on tried window.plugin.health.requestAuthorization my ide WebStorm was able to detect the second but not the first.
Is there anything I missed/can I use this plugin using the phonegap mac app?
Thanks!
Phonegap Developer App is a tool to easily preview your apps.
Phonegap Developer App is a Cordova app itself, that loads your app code from a local web server.
The thing about the Phonegap Developer App is, as it's a precompiled app, it can only run the plugins that were included on the Phonegap Developer App at the moment of the build.
That means, most 3rd party plugins (like the heathkit one) won't work as they are not included in the Phonegap Developer App.
What you can do is to run your app in your device instead of previewing it.
To do it, run, with the Phonegap CLI installed and your device plugged in:
phonegap run ios
If you have Cordova CLI installed, this should also work
cordova run ios.
I'm running debug my Ionic application with cordova run android and trying debug with chrome://inspect, it's found my device and list websites opened in my cellphone, but is not finding my Ionic application.
How to can I detect my Ionic application in my Chrome?
Following my cordova plugin list:
cordova-admobsdk 1.0.4 "Google Mobile Ads SDK for Cordova"
cordova-plugin-admob 3.2.4 "Cordova-Phonegap AdMob Plugin"
cordova-plugin-admobpro 2.25.0 "AdMob Plugin Pro"
cordova-plugin-console 1.0.4 "Console"
cordova-plugin-extension 1.5.1 "Cordova Plugin Extension"
cordova-plugin-whitelist 1.3.0 "Whitelist"
Device information:
Device: ASUS_T00F (Zenfone 1)
Android version: 4.3
I believe that you need Android >= 4.4.
Here The Chrome docs about it. Remember that Cordova use a WebView to show your app, and if you want to debbug an InApp WebViews you need Android 4.4 or high
Another point to note - in order for Chrome to detect in app 'WebView' of your Cordova application, your Cordova application must be of 'debug' version obtained from Cordova build. If your Cordova application is of 'release' version, Chrome will not be able to detect the 'WebView'.
I am using Samsung Tizen IDE 2.4.0 Rev5 for building Apps for Samsung Tizen TV(emulator - version 2.4).
I created an App which plays video using HTML5 player.
I want to use video.js along with the HTML5 player for playing the videos. So I took it from:
https://github.com/videojs/video.js/releases (Version 5.10.1)
The issue which I am facing is that when I build the project, it (the build) hangs when it tries to build video.js. This happens every time. However, if I use video.min.js (which I believe is the obfuscated version of the same file) instead of video.js, I do not see any such build issue and I am able to run the project.
The tizen SDK is build on top on eclipse, so I checked the following question:
Eclipse building workspace hangs after importing existing maven project because of JavaScript validation
Where similar issue was faced and the solution was to disable javascript validation. However I checked my project files and javascript validation was anyway not enabled.
This could be an issue with R5. We have a product which builds fine with R3 & R4. When we upgraded to R5, the build would hang because of the size of our 'browswerified' client library file. When we rolled back to R4, the project built again. Samsung support has privately confirmed to me that they can reproduce the issue with our project.
I would encourage you to log a 'Q&A 1:1' through the Seller Office (http://seller.samsungapps.com/tv/portal/main).
I am planning to develop hybrid application for Android and iOS using Angular,Phonegap etc.
My main query is how to maintain single code base for iOS/Android?
Q1:I execute cordova create command to create project for Android. and write one Hello World App.Do I need to do create project again in iOS and copy www?
Q2: How about maintaining single code in git ? I am confused since folder structure are different for Android and iOS ?
Any help is appreciated.
I have searched many blogs but didn't find the this concepts.
Just develop your code under project/www
cordova platform add android
cordova platform add ios
Will create both platforms, and with cordova prepare, and cordova build, it will copy the files to each platform
To maintain code, just add your project into a GIT, and both platforms project/platforms/[IOS/android] will be in the same project. You can also gitignore the platforms if you want to maintain light your project
There is so much conflicting information out there on this, I'm hoping we can shed some light.
Goal: Create and develop a phonegap app that will be built using phonegap build.
1) I don't want to install the android and iOS SDKs, that's why I want to use phonegap build.
2) I created an app using the cordova cli cordova create hello
3) There is no phonegap.js or cordova.js I guess because I didn't add a platform. But I don't want to add a platform as that requires installing the SDKs
4) I need to be able to debug and test this, so I downloaded ripple, which may or may not work, I need the phonegap.js file first to see.
So has anyone figured this out? Building and developing and app that will be used on Phonegap build?
Thanks!
Phonegap will let you create a UI using webview of Android, iOS, Blackberry or other platforms. That means you need to have native SDK to apply Phonegap Build. It doesn't mean that Phonegap will create an App for you and deploy it to other platforms.