phonegap-plugins

Phonegap Error: “An error occurred while listing Android targets” while installing Phonegap on Ubuntu

谁都会走 提交于 2019-12-05 06:14:12
http://cordova.apache.org/docs/en/3.3.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide As metioned in the above doc, I have already installed the required software for Phonegap as I have getting versions: For Java: $ java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) For ANT $ ant -version Apache Ant(TM) version 1.8.2 compiled on December 3 2011 For Node.JS $ npm -version 1.4.3 Now, the problem is when I create a phonegap project for Android like this "$ cordova create

cordova[phonegap] Setting splash screen is not working fine in ios

雨燕双飞 提交于 2019-12-05 04:40:28
问题 I have added splash screen for my phonegap app. I am building phonegap app online at http://build.phonegap.com . Splash Screen is working fine for android .But on ios splash screen hides before the defined time. Config.xml For Splash Screen <?xml version="1.0" encoding="UTF-8" ?> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" xmlns:android = "http://schemas.android.com/apk/res/android" id = "com.clerisy.arcade" versionCode = "10" version = "1.0.0" > <!

Show Interstitial Ad via AdMob in Ionic every 2 minutes

喜欢而已 提交于 2019-12-05 02:30:31
问题 I'm using AdMob plugin in Ionic and with this code I show an Interstital ad: function initAd(){ // it will display smart banner at top center, using the default options if(AdMob) AdMob.createBanner( { adId: admobid.banner, bannerId: admobid.banner, position: AdMob.AD_POSITION.BOTTOM_CENTER, autoShow: true, isTesting: false, success: function() { console.log('banner created'); }, error: function() { console.log('failed to create banner'); } }); window.AdMob.prepareInterstitial({ adId:admobid

window.plugins undefined in cordova-2.0.0 [closed]

空扰寡人 提交于 2019-12-05 02:17:46
I'm trying to use the BarcodeScanner plugin for Cordova in a BlackBerry device without luck. The sample code makes use of this structure: window.plugins.BarcodeScanner... but window.plugins is undefined . I tried with a fresh new application and window.plugins continues to be undefined (I mean, the sample application without any addition). Did the api have changed and the documentation is outdated or there's something I'm missing? Thanks! All, I pushed a new BarcodeScanner this morning that works with 2.0.0. https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner/2.0.0

Plugin to get the version of PhoneGap App?

别来无恙 提交于 2019-12-04 23:07:49
I am using PhoneGap build to package my app is there any PhoneGap or 3rd Party Plugin that I can include in my config.xml to get the version of the app in the runtime? Any suggestion on best way to get the version of the App would be appriciated. Lee Crossley This plugin works on iOS, Windows Phone 8 and Android: http://plugreg.com/plugin/whiteoctober/cordova-plugin-app-version If you're using the Cordova CLI, you can install via: cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git Then it's as simple as: cordova.getAppVersion(function (version) { alert(version);

Ability to lock orientation of device with JavaScript in PhoneGap/Cordova

丶灬走出姿态 提交于 2019-12-04 22:39:34
I'm looking for a way to programatically lock the orientation of a device in a PhoneGap/Cordova application using JavaScript for certain pages only. I am aware that in can be locked globally in the config.xml file but I am searching for a solution that supports both iOS and Android whereby I can lock the orientation using a checkbox/radio control on a single page in my App. I have found some possible Cordova plugins but they are all Android only. I am willing to write a Cordova/PhoneGap plugin but I am not sure of the Objective-C and Java code required to lock the orientation using the various

Phonegap 3.0 FileTransfer download not working

点点圈 提交于 2019-12-04 20:19:39
I'm downloading a multi-part mime encoded image to iOS like this: var ft = new FileTransfer(); url = encodeURI(url); ft.download(url, path, function(fileEntry) {}, function(err) {}); with path = "file://localhost/var/mobile/Applications/D702F059-A29F-4FF4-A165-D4A903DEDE7D/Documents/captured/2419747919.jpeg" and get the following error: body: "Could not create path to save downloaded file: The operation couldn’t be completed. (Cocoa error 513.)" code: 1 (file not found) http status: 200 This hints to an invalid path, but I can't see anything wrong with it. I get the path like this: path = fs

How can I add a native view from a Cordova plugin

大憨熊 提交于 2019-12-04 19:39:56
I am developing a plugin with the latest version of Cordova (3.3). I need to add a native UIImageView to the Cordova view. If I have access to the project for example in the platform folder, I can add my view to the view instance belonging to CDVViewController . However, I am not sure how to access that reference from a plugin. Inside my plugin I have: @interface CDVCool : CDVPlugin @property (weak, nonatomic) UIImageView *nativeImageView; ... @end How can I initialize and render this view by modifying only the plugin files? Credit for this answer goes to devgeeks who pointed me to a couple of

How To scan QR code in Phonegap

﹥>﹥吖頭↗ 提交于 2019-12-04 19:25:45
I am starting phonegap and I learn many plugins in phonegap but I am getting stuck when I want to use QR scanner in phonegap. Give me any solution if there is Have tried this QR code scanning in my cordova app a while back. Hope it should work fine. The code is as follows: index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> <meta name="msapplication-tap-highlight" content="no" /> <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->

difference between window.openDatabase() and window.sqlitePlugin.openDatabase() functions?

只愿长相守 提交于 2019-12-04 19:08:07
问题 Using Cordova version 3.x and Android version 2.x to 4.x. I am wondering: Is my understanding correct that all android devices by default have an sqlite program/interface for creating sqlite database? Do both the above database function calls create a sqlite database in the device? If the above answer is no , then what type of Database do both the above function calls create? If the answer is yes , then is window.sqlite.openDatabase() function wrapper around window.openDatabase() ? Are the