phonegap-build

PhoneGap Build: Plugins not working (getting “undefined” errors) on Android

本秂侑毒 提交于 2019-12-24 16:25:00
问题 I've got a really nasty problem here. Every time, I try to use the file and file-transfer plugins in my project, I get the Uncaught TypeError: Cannot read property 'dataDirectory' of undefined error while trying to get the data directory with store = cordova.file.dataDirectory; . Now, I've been trying to solve my problem for hours, but I couldn't find any help. I'm also using the Barcode Scanner plugin in this project an it's working like a charm. I am using PhoneGap 3.6.3 and jQuery Mobile 1

iOS broswer data -> Cache & Cookie for Phonegap App / Session?

牧云@^-^@ 提交于 2019-12-24 15:16:18
问题 I am producing a phonegap app which is half native and half web based. When a user is required to upload data to the server, the webView (or atleast i belive this is what its called) loads an external webpage... Now here is the catch. When I load the app (from soft reset and cooking and storage data cleard on the iPad) I get this screen small thin login bars - functions are not as in a normal web browser http://carbonyzed.co.uk/3.png however if I go into the web browser before opening the app

phonegap plugins 5.1.1 cli don't work

纵然是瞬间 提交于 2019-12-24 12:12:50
问题 I solved the problem: "I forgot to read the FAQ. Now, I read it and it worked. The problem was I was uploading the full project of phonegap instead www directory + config.xml" I am using Phonegap 5.1.1 cli and when I tested my App with Phonegap Developer App, all plugins such as Dialogs plugin or camera work, but when I compiled the App using Adobe Phonegap Build and installed on the phone, I pressed up a button and the dialog doesn't work: I have this code on my config.xml: <?xml version='1

Ionic App on Android not sending http requests

我怕爱的太早我们不能终老 提交于 2019-12-24 11:20:43
问题 I need your help. I have an app in the app store which is based on ionic and build with phonegap build. Since last week some of my users cannot login into to the app anymore. I already tried to debug on the server side but the request does not even reach the server. The weird thing is that the problem started to appear last week before that everything worked fine. It seems to occur only on some phones, but I cannot see a pattern of smartphone type or android version. I already read most of

PhoneGap / Cordova 1.5 iOS “do not back up” file attribute

我只是一个虾纸丫 提交于 2019-12-24 06:49:38
问题 According to the developer documentation on Apple's website: https://developer.apple.com/library/ios/#qa/qa1719/_index.html Starting in iOS 5.0.1 a new "do not back up" file attribute has been introduced allowing developers to clearly specify which files should be backed up. (com.apple.MobileBackup) I'm wondering if this is supported in PhoneGap / Cordova, as I want to be able to store some offline data (data that can be downloaded or otherwise recreated, but that the user expects to be

Do I need an AndroidManifest.xml when working with Phonegap?

北战南征 提交于 2019-12-24 03:07:18
问题 I started my development with Phonegap-start and has been building and testing for android with Phonegap Build. Now I want to implement push notifications, I've looked at PushPlugin and when following the instructions from the README in step 2 they ask me to modify my AndroidManifest.xml. I don't have any AndroidManifest.xml file, neither does the Phonegap-start app or the PushPlugin example. Do I need an AndroidManifest.xml? If yes, where do I found one? 回答1: Not if you use Phonegap Build.

PhoneGap open file in native app. Build via build.phonegap.com

穿精又带淫゛_ 提交于 2019-12-24 00:17:20
问题 At first: YES, there are many solutions in StackOverflow, but non of them works in my case. I got application built in SmartGWT.mobile I attached config files and all needed files to this build to prepare it for PhoneGap Application is build via build.phonegap.com site. It works perfectly fine on Android 4.1.1 I want to: Download file to local filesystem it is an PDF file - It is working fine using: var fileTransfer = new FileTransfer(); fileTransfer.download(..... Open PDF in native app (for

Phonegap getPicture method fails when image file names with spaces in Android

旧巷老猫 提交于 2019-12-23 16:30:13
问题 I'm using the latest version of the phonegap camera plugin (i.e. 0.2.9) and 3.5 of phonegap Build, testing on Android, below is my code for getting images: navigator.camera.getPicture(uploadPhoto, function(message) { console.log('get picture failed');alert(message) }, { quality: 50, targetWidth: 400, targetHeight: 400, destinationType: navigator.camera.DestinationType.FILE_URI, sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY } ); when i choose an image where its filename without

PhoneGap Android from 3.7.0 to 4.0.2 cross-domain XHR 404's

陌路散爱 提交于 2019-12-23 12:14:03
问题 I have an Android application with the following in config.xml : <access origin="*" /> Then, I begin a request to an API end-point using Angular $http like this: $http({ data: this._createTokenRequest(tenant, username, password), method: 'POST', headers: { Accept: 'application/json', 'Content-Type': 'application/json' }, timeout: 10000, url: url + '/api/RequestToken' }).catch(err => { alert(err.message || err); alert(JSON.stringify(err)); }).then(response => { alert(response); }); In 3.7.0

Media.getduration returns -1

南楼画角 提交于 2019-12-23 10:49:10
问题 I am trying to get the duration of the audio files. For that I am using the following code: $.fntReproducir=function(){ //obtenemos una instancia del elemento que contiene la info. de cancion a reproducir var $objContenedorCancion=$('#olCanciones').children().eq(iCancionActual); //obtenemos la ruta del archivo que se va a reproducir y se lo asignamos //al source del audio player de HTML5 objReproductor = new Media($objContenedorCancion.attr('rel'), stopAudio, null); //var timerDur =