phonegap-build

cordova-plugin-whitelist working on Android but not iOS (Phonegap Build)

喜夏-厌秋 提交于 2019-12-05 06:00:22
I'm working on a JavaScript app wrapped in Cordova and built with Phonegap Build. We're including cordova-plugin-whitelist from npm in our build and have added <access origin="*" /> to our config.xml and an open CSP ( <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"> ) in our index.html. The app works fine on Android and talks to our server without issues, but on iOS all requests fail immediately as if the whitelist plugin isn't letting traffic through. I've tried a number of different build

Cordova Hide Status Bar

牧云@^-^@ 提交于 2019-12-05 03:23:06
I'm building an application for iPad with Phonegap and Framework7 and I can't seem to get the status bar to be hidden on the iPad no matter what I do. I've tried to google out a few tutorials, including the following questions: How to remove iOS status bar with Phonegap Build? How to completely hide the status bar in iOS using Cordova? Cordova/Phonegap ignores fullscreen preference in config.xml on iOS I've tried the solutions provided in all the answers of the questions above and my status bar is still there. I've opened the project with xCode and I can see that the settings are configured

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);

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

流过昼夜 提交于 2019-12-04 18:28:40
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. The DOM contains the following <a href="blob:file%3A///cf2e336c-8c10-4e54-9e99-26f7d5a0115f" download="1

Download attribute not working in Phonegap app

你。 提交于 2019-12-04 17:41:12
This is not my first hybrid app (I've published apps on both Google Play Store and Apple Store). My target platform is Android. I'm not sure which versions will be supported, I will determine that later if I decide to publish this idea at all.. I'm using Phonegap Build. I'm having some trouble getting the HTML Download attribute of the A element to work. Here's what I have: <a download href="http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2014/4/11/1397210130748/Spring-Lamb.-Image-shot-2-011.jpg">Lamb</a> If I remove the download attribute, the image opens in my phonegap app (Android

PhoneGap: Device orientation under iOS

冷暖自知 提交于 2019-12-04 13:18:37
I created a new PhoneGap app using the following phonegap create hello-world com.hello.world HelloWorld With PhoneGap 4.2.0-0.25.0. However, I am not able to change the viewport orientation to landscape on the iPhone or the simulator. I tried the following two methods within my config.xml. <preference name="orientation" value="default" /> <preference name="orientation" value="landscape" /> I am still not able to use the app in landscape mode. (Of course I disabled any rotation locks on my iPhone.) Does anybody know how to solve this? I just tried it and it worked fine. Be sure to set the

How to implement Google Analytics in hybrid mobile apps?

为君一笑 提交于 2019-12-04 13:08:57
I am writing a hybrid mobile app using HTML5, CSS and jQuery Mobile. I will use Cordova Js to convert the HTML5 app to native mobile apps for iOS and Android. I want to use Google Analytics to track various activities performed by users. I found that GA provides SDKs for native apps but not much was specified for hybrid apps. Have you implemented tracking for Cordova or PhoneGap based apps? Can you provide me some direction on how to do it? I use the ngCordova Google Analytics plugin. You don't need Angular or Cordova to use it http://ngcordova.com/docs/plugins/ The git and docs are here:

Phonegap desktop not launching properly ..keeps loading

半腔热情 提交于 2019-12-04 13:05:05
I have installed phonegap desktop v(0.3.0) on windows 7 (64 bit) To All, it appears that the 0.3.0 release was problematic. There is a new version (0.3.1) to address the issue. See this Blog post for details: PhoneGap Desktop App 0.3.1 Download for Mac Download for Windows My Problem got resolved. downloaded the new version (0.3.1) from below link and installed it https://github.com/phonegap/phonegap-app-desktop/releases I solved it by going to the phonegap directory and running (as administrator) the batch file "resources \ app.asar.unpacked \ bin \ postInstall.bat " 来源: https://stackoverflow

PhoneGap missing plist.key

淺唱寂寞╮ 提交于 2019-12-04 10:52:49
问题 When I try and load upload my iTunes app installer to iTunes I relieve this error: Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data. Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription

How do I sign an Android APK which was built with PhoneGap Build?

南楼画角 提交于 2019-12-04 09:43:08
问题 PhoneGap Build seems like a great tool and I've build an .apk with it and tested it on multiple Android devices. Now I need to submit it to the Google Play store but I need to sign the apk. I've read all about signing an .apk on Google's developer site but it seems that I need to install the Android development tools and use Eclipse. I've installed it but I can't find a way to import my .apk so I'm stuck. I don't get it - what is the point of PhoneGap Build then? This is all very