Generating iOS and Android icons in Cordova / PhoneGap

I wrote a script that auto generates icons for cordova using ImageMagick: https://github.com/AlexDisler/cordova-icon To use it, create an “icon.png” file and place it in the root folder of your project, then run: cordova-icon and it will generate all the required icons for the platforms your project has. You can also configure it as a hook … Read more

Cordova InAppBrowser – How to disable URL and Navigation Bar?

To remove the URL, just set the ‘location‘ option to “no“. var ref = cordova.InAppBrowser.open(‘http://apache.org’, ‘_blank’, ‘location=no’); On Android, this removes the ‘Back/Forward’ buttons, URL and ‘Done’ button, not just the URL, but thankfully there’s a special Android-only ‘hideurlbar’ option to remove ONLY the URL. var ref = cordova.InAppBrowser.open(‘http://apache.org’, ‘_blank’, ‘hideurlbar=yes’); The ‘Done’ button text … Read more

Cordova: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable

The recent Android SDK tools removed the android command. $ android -v The android command is no longer available. For manual SDK and AVD management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager cordova is behind the change and someone seems to be working on it: https://issues.apache.org/jira/browse/CB-12554 You can also downgrade your … Read more

How can I implement SSL Certificate Pinning while using React Native

After exhausting the current spectrum of available options from Javascript I decided to simply implement certificate pinning natively it all seems so simple now that I’m done. Skip to headers titled Android Solution and IOS Solution if you don’t want to read through the process of reaching the solution. Android Following Kudo’s recommendation I thought … Read more

Build android release apk on Phonegap 3.x CLI

This is for Phonegap 3.0.x to 3.3.x. For PhoneGap 3.4.0 and higher see below. Found part of the answer here, at Phonegap documentation. The full process is the following: Open a command line window, and go to /path/to/your/project/platforms/android/cordova. Run build –release. This creates an unsigned release APK at /path/to/your/project/platforms/android/bin folder, called YourAppName-release-unsigned.apk. Sign and align … Read more