phonegap-build

phonegap: how to check if gps is enabled

穿精又带淫゛_ 提交于 2019-12-03 13:59:19
问题 I want to show an alert saying that "Please turn on your GPS". How can I get GPS status using phonegap? I have used following code but I don't get any alert message if GPS is turned off. Instead nothing happens. <!DOCTYPE html> <html> <head> <title>Device Properties Example</title> <script type="text/javascript" charset="utf-8" src="cordova.js"></script> <script type="text/javascript" charset="utf-8"> // Wait for device API libraries to load // document.addEventListener("deviceready",

How to install .xap phonegap build in windows phone 8?

陌路散爱 提交于 2019-12-03 13:00:17
问题 I have developed one simple game by using phonegap android BUT after build for windows, ios, android, blackberry etc, its working only for android devices, so I can install apk file for android devices BUT for windows .xap file is not detecting in the windows phone 8 device. I have downloaded .xap from after build in phonegap. Anybody please advice me How to install .xap into wp8? Any steps and procedure appreciated a lot. Thanks in advance 回答1: To install xap: you have to register as windows

Change Widget ID or Package Name for android/iOS platform on phonegap?

若如初见. 提交于 2019-12-03 12:25:09
I have an app in Google Play with package com.example001.android and one app in the iOS store with the name com.example001.ios . However, I am now using the phonegap build , have removed a lot of the bootstrap code, leaving only the www folder, I am using the widget id from config.xml , so now I only have 1 config.xml . If I set the widget id to com.example001.ios I can't publish this app in android. If I leave the widget id to com.example001.android I can't publish this app in apple store. If I change the widget ID to a generic one, say com.example001.mobile , then I won't be able to upload

Cordova : Unable to install apk after upgrading android to 5.1.1 Nexus 5

你说的曾经没有我的故事 提交于 2019-12-03 09:06:40
问题 Unable to run apk on nexus 5 after upgrading to 5.1.1 Using Cordova: 5.0.0 Device : Nexus 5 Machine : MAC BUILD SUCCESSFUL Total time: 8.432 secs Built the following apk(s): /Applications/XAMPP/xamppfiles/htdocs/android/kaljacobs/platforms/android/build/outputs/apk/android-debug.apk Using apk: /Applications/XAMPP/xamppfiles/htdocs/android/kaljacobs/platforms/android/build/outputs/apk/android-debug.apk Installing app on device... /Applications/XAMPP/xamppfiles/htdocs/android/kaljacobs

PhoneGap missing plist.key

*爱你&永不变心* 提交于 2019-12-03 08:05:21
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 key with a string value explaining to the user how the app uses this data. What can I add to my config

Cordova external app + local video

徘徊边缘 提交于 2019-12-03 07:22:39
问题 We have an iOS app built with PhoneGap / Cordova 4.3.0. This app directly loads an external website by using <content src="http://example.com/foo" /> in the config.xml file. All the functionality is contained within this website, so we are not actually using any local HTML or JS files. As part of the app functionality, we must play some videos. Because the app is designed to work offline as well, we want to cache these videos locally. Therefore we are downloading them to the device using the

phonegap: how to check if gps is enabled

泄露秘密 提交于 2019-12-03 04:16:41
I want to show an alert saying that "Please turn on your GPS". How can I get GPS status using phonegap? I have used following code but I don't get any alert message if GPS is turned off. Instead nothing happens. <!DOCTYPE html> <html> <head> <title>Device Properties Example</title> <script type="text/javascript" charset="utf-8" src="cordova.js"></script> <script type="text/javascript" charset="utf-8"> // Wait for device API libraries to load // document.addEventListener("deviceready", onDeviceReady, false); // device APIs are available // function onDeviceReady() { var test= navigator

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

孤街浪徒 提交于 2019-12-03 03:53:09
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 disheartening. The app is ready to go but... This was the solution. I got the Android dev kit - http://developer

iOS textarea text hidden when using -webkit-overflow-scrolling: touch

霸气de小男生 提交于 2019-12-03 03:33:03
Once again I am here because I have exhausted my research on the subject. I have a very simple setup with very simple markup and yet a very strange behavior. The behavior is eerily similar to ( Firefox and Angular: Textarea placeholder doesn't appear until first focus ) but I am experiencing it in a different environment. Consider the snippet with a readonly text area. This brings bad a list of comments, where 2-3 fit on the screen before having to scroll for some more already loaded comments. <div class="row"> <div class="col-xs-2 text-right font-sm-dark" style="height:20px; line-height:20px;

How to install .xap phonegap build in windows phone 8?

青春壹個敷衍的年華 提交于 2019-12-03 03:09:24
I have developed one simple game by using phonegap android BUT after build for windows, ios, android, blackberry etc, its working only for android devices, so I can install apk file for android devices BUT for windows .xap file is not detecting in the windows phone 8 device. I have downloaded .xap from after build in phonegap. Anybody please advice me How to install .xap into wp8? Any steps and procedure appreciated a lot. Thanks in advance deeiip To install xap: you have to register as windows phone developer here Now connect the phone to computer with a data cable. Go to this location C: