phonegap-build

Per platform configuration (config.xml) on PhoneGap Build

偶尔善良 提交于 2019-12-10 17:44:27
问题 I have a PhoneGap 3.1 application that I build remotely on PhoneGap Build. In my app there is a single config.xml file at the root of the project. This file contains: <preference name="orientation" value="default" /> However I would like to restrict the orientation to portrait mode in iOS. I've randomly tried : <preference gap:platform="ios" name="orientation" value="portrait" /> and <gap:platform name="ios"> <preference name="orientation" value="portrait" /> </gap:platform> but none of these

Error in build on device Android

房东的猫 提交于 2019-12-10 15:12:27
问题 I want to run my app on my real device Android but I receive this error: Running command: D:\WebStorm\Path\platforms\android\cordova\run.bat ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk JAVA_HOME=C:\Program Files\Java\jdk1.8.0_40 WARNING : No target specified, deploying to device '02c5cabed02456d5'. Running: D:\WebStorm\Path\platforms\android\gradlew cdvBuildDebug -b D: \WebStorm\Path\platforms\android\build.gradle -PcdvBuildArch=arm -Dorg. gradle.daemon=true Downloading http:/

Phonegap (Application error… Network error occured)

元气小坏坏 提交于 2019-12-10 14:06:24
问题 I have created a build using phonegap. In the index.html file i have written a simple iframe for loading a website. Its working when i take the local url from the phonegap. But its not working if i upload the whole build as a zip in phonegap and then download the apk file from it. Then tried to install that apk in phone its showing the application error. I have already checked the access origin and also tried to give the domain name inside it. But its not at all working. Can anybody please

Phonegap : Custom font is not working

久未见 提交于 2019-12-10 13:14:51
问题 I am doing an application in PhoneGap using custom font style. The font style is taking in browser , but not taking in Android phone. <style> @font-face { font-family: 'CooperStd'; src: url('fonts/cooperblackstd.eot'); src: url('fonts/cooperblackstd.eot?#iefix') format('embedded-opentype'), url('fonts/cooperblackstd.woff') format('woff'), url('fonts/cooperblackstd.ttf') format('truetype'), url('fonts/cooperblackstd.svg#CooperBlackStd') format('svg'); font-weight: 900; font-style: normal; }

How to make a phonegap build app work in background

隐身守侯 提交于 2019-12-10 12:25:02
问题 I need my app to work 24/7 recording the users location every 5 mins. It works fine while the phone is active but when it isn't the setInterval() 's strecth out to be up to 5x longer than they should. Using phonegap build, how would I go about making the app work as it should in the background while the phone is idle? 回答1: @Marty, both Android and iOS and run in the background, but require an extension to the regular config.xml. To be clear Android apps uses AndriodManifest.xml. iOS uses,

Save canvas image on local mobile storage for IOS/Android

橙三吉。 提交于 2019-12-10 12:02:34
问题 Im using the fabric javascript library to create a custom image. All the data is saved in a canvas and is shown using canvas tag. After displaying the image, I would like to give the user the option to save it locally. Anyone has any idea how to do that? The solution should work for IOs and Android, I've tried several alternatives but still no luck. [Update 1] I tried using the Canvas2ImagePlugin but for some reason my app restarts when running the window.canvas2ImagePlugin

Get controller value in app.js from controller.js

心不动则不痛 提交于 2019-12-10 11:36:07
问题 Can anyone help me to pass the variable $scope.imageRepoUrl from controller.js to app.js controller.js .controller('deallistCtrl', ['$scope','deals', function($scope, deals) { $scope.title = "test"; $scope.deals = deals.payload; $scope.imageRepoUrl=$scope.$parent.imageRepoUrl; $scope.appWebUrl=$scope.$parent.appWebUrl; }]) app.js .state('app.deallists', { url: "/deallists", views: { 'menuContent': { templateUrl: "templates/deallists.html", controller: 'deallistCtrl', resolve: { deals: ['$http

PhoneGap File Transfer Error 1, where to write FileTransfers?

情到浓时终转凉″ 提交于 2019-12-10 11:26:47
问题 Related to: https://stackoverflow.com/questions/21044197/download-file-and-store-them-locally-in-sdcard-using-phonegapbuild but that questions has never been answered. About this app, I'm writing a little app that displays a bunch of pdf's, it's written using jquerymobile + phonegap and it's being build with the phonegap build service. I realize that this function cannot work, since the root-Directory is not a valid place to write anything. But, I was unable to get the working directory of my

PhoneGap Build version 2.7.0 ignoring fullscreen preference in config.xml on Android

一曲冷凌霜 提交于 2019-12-10 10:13:44
问题 I have followed the very clear instructions on this page: https://build.phonegap.com/docs/config-xml I have included the following line in my config.xml file (which is indeed located at the top level of my app): <preference name="fullscreen" value="true" /> And yet the status bar at the top of the screen remains. Here is my full config.xml file if it helps.. <?xml version="1.0" encoding="UTF-8" ?> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" id =

Phonegap/Cordova 3.6 - Download of file through blob:file

旧城冷巷雨未停 提交于 2019-12-09 22:08:32
问题 We have an app using Phonegap 3.6.3 and built with Phonegap build . As part of this app, we need to download a file onto the device of the user. The file might be a .pdf, an image or any binary file. We hope to download the file with a blob:file link in the app, and not use a plugin such as file-transfer. The file is converted from Base64 data and a Blob object is created. An objectURL is generated through window.URL.createObjectURL() and this is added to the href attribute of an a element.