phonegap

Cordova healthkit plugin functions for iOS are returning undefined?

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use the cordova-plugin-health plugin for a phonegap app I am working on. Whenever I use the app every plugin works but this one. I am using the phonegap mac app to test on an iPhone 6s. Steps I have taken: Installed plugin with cordova plugin add cordova-plugin-health --variable HEALTH_READ_PERMISSION='App needs read access' --variable HEALTH_WRITE_PERMISSION='App needs write access' also I did cordova platform add ios Used navigator.health.requestAuthorization later on tried window.plugin.health.requestAuthorization my ide

Phonegap - navigator.app.backHistory() not working on HTML back button

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my app i am using phonegap 2.6.For back button, I am using the following function document.addEventListener("backbutton", onBackKeyDown, false); function onBackKeyDown() { alert("hello"); navigator.app.backHistory(); } document.addEventListener('deviceready', onDeviceReady, true); The above function works fine when I click on the device's hardware back button . But when I click on the back button it is not working. I have designed my back button as below: But this button is working fine for this navigator.app.exitApp(); (application exit)

Cordova WKWebView Plugin with PhoneGap Build Version 6.0.0

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: From the blog post about PhoneGap 6.0.0 being available on Build my understanding is that we can now use the Cordova WKWebView engine with apps build with PhoneGap Build. See: http://phonegap.com/blog/2016/02/09/phonegap_6_now_on_build/ https://shazronatadobe.wordpress.com/2015/09/09/apache-cordova-ios-4-0-0-and-wkwebview-support/ https://github.com/apache/cordova-plugin-wkwebview-engine I've updated my config version to include the following but am still getting the default UIWebView: <preference name="phonegap-version" value="cli-6.0.0" />

How to hide keyboard on phonegap android

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using 1.0 PhoneGap for android. I have an application form with several fields, one of them is to put the anniversary. I put a datepicker that field, yet when you click on the field, the keyboard appears. how can I disable the keyboard? Code as below : <label> Date: </label> <input id="datepicker" type"text" name="date"/> 回答1: You can mark the input field as read only and then create a function for an onclick event to display the datepicker. 回答2: Not sure what JS library you're using, but in jQuery, you'd do: $('#datepicker').focus

How to hide keyboard on phonegap android

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using 1.0 PhoneGap for android. I have an application form with several fields, one of them is to put the anniversary. I put a datepicker that field, yet when you click on the field, the keyboard appears. how can I disable the keyboard? Code as below : <label> Date: </label> <input id="datepicker" type"text" name="date"/> 回答1: You can mark the input field as read only and then create a function for an onclick event to display the datepicker. 回答2: Not sure what JS library you're using, but in jQuery, you'd do: $('#datepicker').focus

Phonegap password prompt

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i want to make a password prompt in phonegap. any plugins or html/js snippet i have tried function onPrompt(results) { alert("You selected button number " + results.buttonIndex + " and entered " + results.input1); } // Show a custom prompt dialog // function showPrompt() { navigator.notification.prompt( 'Please enter your name', // message onPrompt, // callback to invoke 'Registration', // title ['Ok','Exit'] // buttonLabels ); } but it doesnt have any option for password 回答1: You need to look at the native code to display password promt. As

Phonegap CDVViewController.h file not found when Archiving for iOS

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm currently using Phonegap 2.0 to develop an iOS App in XCode. The app builds and runs fine in the emulator and also on the testing devices. The problem appears when I try to archive the app for distribution. The archive fails with the following message: CDVViewController.h file not found. Any ideas? 回答1: Xcode 6.x add $(OBJROOT)/UninstalledProducts/include to BuildSettings->Header Search Paths Xcode 7.x add $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include to BuildSettings->Header Search Paths 1.Double click the and you can add this

Keep getting “A network error occurred” when testing PhoneGap app with Eclipse

匿名 (未验证) 提交于 2019-12-03 02:22:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've just received the PhoneGap solution from by sub-contractor in order to test it on my phone before launch. I import the project into Eclipse and it all looks fine. I can test the app locally on my computer by opening the index.html file: file://E:/AppDevelopment/Workspace/myproject/assets/www/index.html So far so good. Then I try launching this an my phone ( via USB cabel). The front page opens, but the CSS is missing. And when I click any link, I get the following message: "A network error occurred. (file:///android_asset/www/car.html

How to make Xcode find file FacebookSDK.h?

匿名 (未验证) 提交于 2019-12-03 02:21:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: It says "FacebookSDK/FacebookSDK.h file not found" Yet I can jump-to-definition on the #import and it takes me to the file. And once I added the #import it now knows what FBFriendPickerDelegate is and it now doesn't have an error on that line. I have the facebookSDK.framework in my project and in the right folder. It's SDK 3.1. I tried adding search paths to /FacebookSDK and /FacebookSDK.framework and /FacebookSDK/Versions/A/Headers etc. I also tried #import "FacebookSDK.framework/Versions/A/Headers/FacebookSDK.h" and it still says

navigator.app.exitApp() is not working

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am developing Windows phone 8 PhoneGap app. Using navigator.app.exitApp() I am quiting the app from home screen in Windows phone 7. But when I tried the same in Windows phone 8, I am getting the error Unable to get property 'exitApp' of undefined or null reference . I would like to know why it is undefined in Windows phone 8 and not in Window phone 7 PhoneGap app. Also, I would like to know, is there any way to quit the app programmatically in Windows phone 8 PhoneGap app?. 回答1: You can create a simple plugin. Add file ExitApp.css to your