Cordova build changes distributionUrl in gradle-wrapper.properties file

As could be guessed, there is a script that is being run behind the scene when you issue the “Cordova build android” command. This script needs to be found in order to see the config specified for Gradle version. You must go and check the following js file: $PROJECT_ROOT/platforms/android/cordova/lib/builders/GradleBuilder.js Then find the line including the … Read more

How do Adobe PhoneGap and Apache Cordova differ?

PhoneGap was originally an open source project by Nitobi for packaging HTML5 code within native ‘wrappers’ for the creation of mobile applications. Adobe acquired Nitobi and the PhoneGap technology. Adobe proceeded to contribute the PhoneGap code to the Apache Software Foundation in order to ensure that it remains open source. At this point the name … Read more

Phonegap HTML app and various alerts hang browser

If you’re testing your app in your desktop browser, you can simply exclude the file. For Chrome: <script type=”text/javascript”> if (!navigator.userAgent.toLowerCase().match(‘chrome’)) { document.write(“<script src=”https://stackoverflow.com/questions/16920596/phonegap.js”><\/script>”); } </script> (This way you don’t have to remember to uncomment the script link for your build process.)

-bash: cordova: command not found; or -bash: phonegap: command not found

I’m on Mac Os Mountain Lion. After several attempts, turns out the solution is pretty quick. Before installing Cordova, make sure you are the owner of the folders it’s going to install into. Open terminal and type: sudo chown -R $USER /usr/local/bin sudo chmod -R 0775 /usr/local/bin sudo chown -R $USER /usr/local/lib/node_modules sudo chmod -R … Read more

Ionic iOS build fails, error archive not found

Currently cordova-ios is not compatible with Xcode 10 You can try to disable the new build system that Xcode 10 uses and use the old one by adding this to your build.json file “buildFlag”: [ “-UseModernBuildSystem=0″ ] or adding –buildFlag=”-UseModernBuildSystem=0″ to the build command The full command should be cordova build ios –buildFlag=”-UseModernBuildSystem=0″. Or for … Read more

What is the difference between apache cordova and ionic?

Apache Cordova is a community project, letting you build mobile apps for various mobile platforms with one unique code base, as you develop your app with web technologies (HTML5, Javascript and CSS3) instead of relying on platform-specific (native) APIs like those of Android, iOS, or Windows Phone. Phonegap is a version of Cordova but it’s … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)