phonegap-plugins

Multiple Html files in PhoneGap Android project

你说的曾经没有我的故事 提交于 2019-12-22 18:32:23
问题 I am developing a cross-platform app with Phone Gap, Jquery Mobile in Android using eclipse. I am not at all using any PhoneGap functions in my app. My purpose with PhoneGap is to build native apps for ios, Android, windows etc from Adobe PhoneGap build service. Under android assest/www/ folder I created multiple sub folders like css,js,html etc, where I put my jquery mobile html,css,js files and my custom js,html,css. Note under www directory I have cordova.js and index.html, cordova jar

Multiple Html files in PhoneGap Android project

时光怂恿深爱的人放手 提交于 2019-12-22 18:31:14
问题 I am developing a cross-platform app with Phone Gap, Jquery Mobile in Android using eclipse. I am not at all using any PhoneGap functions in my app. My purpose with PhoneGap is to build native apps for ios, Android, windows etc from Adobe PhoneGap build service. Under android assest/www/ folder I created multiple sub folders like css,js,html etc, where I put my jquery mobile html,css,js files and my custom js,html,css. Note under www directory I have cordova.js and index.html, cordova jar

Upload a photo to Firebase Storage with Image URI

一曲冷凌霜 提交于 2019-12-22 04:05:32
问题 I am currently attempting to upload a photo to my Firebase app's storage in my Apache Cordova app. I currently get the photo's URI with the following code: function getPhotoFromAlbum() { navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50, sourceType: navigator.camera.PictureSourceType.SAVEDPHOTOALBUM, destinationType: navigator.camera.DestinationType.FILE_URI }); } function onPhotoURISuccess(imageURI) { var image = document.getElementById('image'); image.style.display =

How to make a custom private plugin in phonegap

Deadly 提交于 2019-12-22 03:40:08
问题 Is there any way to achieve this? Everywhere I see contributing to plugin development or making use of an existing plugin (which are public). I would like to make a private plugin. Is this possible? I'm aware that through eclipse (for android) I can do this. But anyway to do this using phonegap build process so that I can make use of other advantages of using phonegap build? 回答1: As of 9.Decemeber 2014, it's now possible to use custom private plugins in Phonegap build. From Q2 2016 the

How To scan QR code in Phonegap

流过昼夜 提交于 2019-12-21 23:09:06
问题 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 回答1: 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

How To scan QR code in Phonegap

扶醉桌前 提交于 2019-12-21 22:59:37
问题 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 回答1: 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

Status bar notification for web app with PhoneGap / Cordova

痞子三分冷 提交于 2019-12-21 20:53:24
问题 I am developping a web app for iOS and Android, using the last version of PhoneGap. I want to send Notifications to the users on their phone's status bar, and I cannot figure out how to do that. It seems that there was a Cordova plugin (StatusBarNotification) that once existed, but all the links I find are dead. If anyone knows a way to send notif to the statusbar, I would be grateful. Thanks Quentin EDIT : I should have been more specific : I am trying to understand how to use the status

Read all images from gallery in ionic app

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 19:24:20
问题 At present I am using $cordovaImagePicker plug-in. I am manually selecting images. My requirement is to display all images from mobile like a gallery App. $cordovaImagePicker.getPictures(options) .then(function(results,afterLoop) { var arrayItems=[]; for (var i = 0; i < results.length; i++) { $scope.images.push(results[i]); } }, function(error) { }); This loads gallery images in a popup where they can be selected. I don't want any popup instead just read all images from phone automatically

FileSystem on Cordova 3.4.0 fails “Could not create target file”

自闭症网瘾萝莉.ら 提交于 2019-12-21 17:01:35
问题 I recently upgraded my iOS Cordova project from 2.7.0 to 3.4.0. After upgrading filesystem access is broken. (seems to work in the simulator though?) I get an error message stating "Could not create target file", I googled around and thought to change my "fullpath" to "toURL()" but to no avail. I really don't know what to try next? here's my download code window.requestFileSystem( LocalFileSystem.PERSISTENT, 0, function onFileSystemSuccess(fileSystem) { fileSystem.root.getFile( "dummy.html",

Disable zoom buttons in Phonegap's inappbrowser

ぐ巨炮叔叔 提交于 2019-12-21 16:51:09
问题 After hours of searching and trying different things I'm close to give up. I want to open an external URL in the inAppBrowser that is now included to the Phonegap Build. I remove the address bar with location=no (also tried toolbar=no , but it didn't do anything), however the zoom (+ and - buttons) that appears whenever you scroll the page won't go away. I can't find a way to disable it, but maybe I overlook something? I'd just use the pinch zoom, so I don't see the reason to have these ugly