phonegap-build

How to: PhoneGap Build navigate to web app instead of index.html?

独自空忆成欢 提交于 2019-12-13 23:32:45
问题 Background (Per this answer and its question) I have a fully responsive web app hosted at http://www.example.com and I just want my mobile app to point the user there. I followed this procedure: $ cordova create myProject Open config.xml Change index.html to http://www.example.com Now I have the following config.xml file. config.xml <?xml version='1.0' encoding='utf-8'?> <widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache

How to set permissions for Android using Phonegap Build?

江枫思渺然 提交于 2019-12-13 16:44:33
问题 I tried other solutions around here but no matter what I do the same permissions are asked during install of my app. I tried removing a bunch of the "plugins" phonegap uses, namely: (from the config.xml) <gap:plugin name="org.apache.cordova.battery-status"/> <gap:plugin name="org.apache.cordova.camera"/> <gap:plugin name="org.apache.cordova.media-capture"/> <gap:plugin name="org.apache.cordova.contacts"/> <gap:plugin name="org.apache.cordova.geolocation"/> <gap:plugin name="org.apache.cordova

exit button event in phonegap for iOS?

梦想的初衷 提交于 2019-12-13 15:04:52
问题 is there any event Listener that calls when we press on iPhone close button in phonegap? so that we can do final task when application close. i have found that onunload method will call when webpage redirect but it want work here. please help me. 回答1: Under the PhoneGapDelegate.m class, you have the applicationDidEnterBackground method, replacing from iOS 4+ the applicationWillTerminate method for applications supporting background execution. 回答2: You can listen to Phonegap's "pause" event:

phonegap build and Facebook Plugin

有些话、适合烂在心里 提交于 2019-12-13 14:51:35
问题 Maybe it's a stupid question, but I can not solve it! I'm working on Phonegap Build, and want to add a facebook login for the app. but plugin seems not to work ! here is the error I receive : "Cordova Facebook Connect plugin fail on init!" for more information my phonegap version is : 3.1.0 and I use Hydration (Maybe gives you an idea) and here is the simple code I use: <html> <head> </head> <body> <button onclick="login()">Login</button> <button onclick="me()">Me</button> <!--<button onclick

Remove White Flicker after splashscreen phonegap 3.3

北城以北 提交于 2019-12-13 12:05:39
问题 How is it possible to create an app, add the splashscreen plugin, the splashscreen should disappear when the device is ready and no WHITE FLICKER to appear?? This happends on Adobe build and also on cli build on android plaform! These are the simple steps I used over and over again for about a week to figure this thing out: I created an app: phonegap create app I added the plugin: phonegap local plugin add org.apache.cordova.splashscreen I added this to the config.xml file from www folder:

Understanding How Google Authenticator app works

时光怂恿深爱的人放手 提交于 2019-12-13 07:41:37
问题 I have seen many two factor authentication apps like the google authentication app. The app works offline and is resets the key on the phone every 30 seconds. So how the the server know which keys are valid? I have having trouble understanding this? And If i were to create such an app myself. How can i do so? 回答1: Google Authenticator uses Time-based One-time Password Algorithm. It uses the current time and a shared secret key to compute the code. The generated codes validate as long as the

Where to put gap:config-file in PhoneGap config.xml

廉价感情. 提交于 2019-12-13 07:41:36
问题 I want to hide the title bar on a PhoneGap App that shows quickly when the app starts. I found a solution (Remove Title Bar Phonegap) but when I try to apply it PhoneGap Build tells me that my config.xml has errors. <?xml version='1.0' encoding='utf-8'?> <widget id="com.phonegap.helloworld" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"> <name>Hello World</name> <description> Hello World sample application that responds to the deviceready event. <

Phonegap build server not working whitelist plugin

偶尔善良 提交于 2019-12-13 05:35:53
问题 I am using Adobe phonegap build Adobe phonegap build My config file: <?xml version="1.0" encoding="UTF-8"?> <!-- config.xml reference: https://build.phonegap.com/docs/config-xml --> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" id = "com.phonegap.helloworld" version = "1.0.0"> <name>Hello World</name> <description> Hello World sample application that responds to the deviceready event. </description> <author href="http://phonegap.com" email="support

build fails on PGB with Error - A plugin you are using requires a preference: ANDROID_SUPPORT_V4_VERSION

风流意气都作罢 提交于 2019-12-13 04:27:55
问题 I've updated the cordova-plugin-print (by katzer)to v0.8.0 but it fails when building with PhoneGap Build. It throws this error Error - A plugin you are using requires a preference: ANDROID_SUPPORT_V4_VERSION Where: Build file '/var/gimlet/tmp/47255016036300/3460831/project/build.gradle' line: 276 What went wrong: A problem occurred evaluating root project 'project'. Could not get unknown property 'ANDROID_SUPPORT_V4_VERSION' for object of type org.gradle.api.internal.artifacts.dsl

splash screen not come when in build from cloud phonegap. form eclipse i run in emulator its work prefect

好久不见. 提交于 2019-12-13 02:38:34
问题 i build phonegap project with help of CLI. and i import that in eclipse. add plugin of splash screen. prefect work in emulator. Then after i want that apps in ios and windows. so for that i go for cloud of phonegap. i upload eclipse code. but splash screen not display. directly goes in main screen by cloud bulider. this is config.xml file which path is:- hello4\platforms\android\res\xml <?xml version='1.0' encoding='utf-8'?> <widget id="com.wtow.hello4" version="0.0.1" xmlns="http://www.w3