phonegap-plugins
Unable to load image when selected from the gallery on Android 4.4 (KitKat) using PhoneGap Camera Plugin
A kind of really-very-dirty workaround works for me while this bug is fixed. Use in case of extreme necessity 🙂 if (imageURI.substring(0,21)==”content://com.android”) { photo_split=imageURI.split(“%3A”); imageURI=”content://media/external/images/media/”+photo_split[1]; }
Phonegap Offline Database
I made an app recently that required this, targetting the same OS’s. You can use a combination of 2 databases : 1. LocalStorage :: Check for localStorage function supports_html5_storage() { try { return ‘localStorage’ in window && window[‘localStorage’] !== null; } catch (e) { return false; } } Set an item into LocalStorage localStorage.setItem(“bar”, foo); … Read more
What is the cordova_plugins.json file for? Cordova is requesting it at initialization
It seems like a feature introduced in Cordova 2.6.0, at least I just noticed in this version. At this point I could not find any documentation and I don’t have many details on it, but right now I solved the 404 issue adding a dummy cordova_plugins.json file to the root of my project. As it … 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
Concatenate and minify cordova/phonegap plugin files
Minification does improve performance for two reasons: Reduced file-size (because it removes comments and unnecessary white-spaces), so your script loads faster. Even if it is embedded into the . It is parsed faster, since comments and white-spaces don’t have to explicitly ignored (since they’re not there). BUT, it is only going to make a real … Read more
Should a phonegap plugin be declared in the config.xml file?
I’m pretty sure the reason that you can still use the plugin is because you either edited the wrong config.xml or did not run the cordova command line tools to propagate your changes to the correct config.xml file that is actually used by the app. There are multiple config.xml files in different spots in a … Read more
Create a Custom AdMob Plugin for Phonegap Build (for iOS and Android)
I make the plugin But it’s was refused on “PhoneGap Build”, because it contains Google Binary files… Today, you don’t have no solution to use Admob on “PhoneGap Build” project.