phonegap-plugins

Google+ SignIn Button with PhoneGap

自闭症网瘾萝莉.ら 提交于 2019-12-19 06:44:03
问题 How can we use the JS Google+ Signin button with Phonegap? Specifically for iOS? I have found this article on doing oauth with phonegap and the childbrowser plugin however I'm not sure that approach will work with the Google+ signin button. Any Ideas? 回答1: The Google+ Sign-In button won't work for you in PhoneGap because of how Phonegap serves content (basically its treated as file://) and that leads to a few problems that relate to either the button itself or to the API Console config. What

Callback From Activity on Cordova

此生再无相见时 提交于 2019-12-19 06:41:09
问题 I have an activity Called 'Signature' and i call it from CordovaPlugin; Plugin.java public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException { Intent i = new Intent(context, Signature.class); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); cordova.startActivityForResult(this,i,90); } public void onActivityResult(int requestCode, int resultCode, Intent intent) { Log.d(TAG, "activity result in plugin: requestCode(" + requestCode + "), resultCode(" +

Callback From Activity on Cordova

拈花ヽ惹草 提交于 2019-12-19 06:41:08
问题 I have an activity Called 'Signature' and i call it from CordovaPlugin; Plugin.java public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException { Intent i = new Intent(context, Signature.class); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); cordova.startActivityForResult(this,i,90); } public void onActivityResult(int requestCode, int resultCode, Intent intent) { Log.d(TAG, "activity result in plugin: requestCode(" + requestCode + "), resultCode(" +

$.ajax POST returning “status”:403,“statusText”:“Forbidden” cordova android

陌路散爱 提交于 2019-12-19 04:41:31
问题 I am developing Android phonegap application with jquery.mobile-1.4.3.js and cordova.3.5.0. i am calling $ajax for web service. below is a code snippet. $.ajax({ type: 'POST', data: LoginData, crossDomain:true, dataType : 'json', timeout: 50000, url: 'https://dsp-wasatchtechies.cloud.dreamfactory.com/rest/user/session?app_name=XXXXX', success: function(data) { console.log(' SESSION' + JSON.stringify(data)); }, error: function(data) { //ActivityIndicator.hide(); console.log('ERROR : SESSION' +

Show keyboard automatically with focus() event in UIWebView using Trigger.IO/PhoneGap

☆樱花仙子☆ 提交于 2019-12-19 04:15:16
问题 Supposedly, this has not been possible since iOS 6 where you can set the UIWebView's keyboardDisplayRequiresUserAction = NO. I'm using a html 5 webview (Trigger.IO) and building a native plugin but am having difficulty grabbing hold of the UIWebView instance. How do I grab hold of the webview so I can simply do the following: mywebview.keyboardDisplayRequiresUserAction = NO; Probably really simple.. what am I missing? 回答1: Access to the UIWebView isn't something we properly expose in the

PhoneGap build error “plugin unsupported: …”

China☆狼群 提交于 2019-12-19 03:14:16
问题 The following config.xml results in error: <?xml version="1.0" encoding="UTF-8" ?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="LogIn" version="1.0.1" versionCode="10" > <name>...</name> <description>...</description> <author >...</author> <preference name="phonegap-version" value= "3.5.0" /> <preference name="orientation" value= "default" /> <preference name="target-device" value= "universal" /> <preference name="fullscreen" value= "true" />

still getting <Cordova/CDVViewController.h> file not found error in xcode

旧城冷巷雨未停 提交于 2019-12-18 19:19:45
问题 I am new in PhoneGap, making a app via Xcode; But I found an error regarding CDVViewController.h . However, the file physically exists there. I am using Xcode 4.6 and Cordova 2.2.0. 回答1: Man, there are a lot of red herring answers to this question out there. This is what worked for me, and is in the documentation for both PhoneGap 2.5 and 3.0 (see here: PhoneGap docs for iOS (look under "missing headers"), using Xcode 4.6. In Xcode, go to Preferences... > Locations, then click on the Advanced

PhoneGap: modify config.xml to add properties to Info.plist ion iOS

早过忘川 提交于 2019-12-18 15:53:42
问题 For my application, I need to add some settings to the Info.plist file for iOS. I thought the best way to do this, would be to add these settings to my config.xml file (I'm using PhoneGap). When I add the following to the config.xml file and run cordova build ios or cordova update platform ios Nothing is added to my Info.plist file, and I absolutely have no idea why that is. The build show 'success', so I don't think there's a syntax error. I've tried: <platform name="ios"> <allow-intent href

Chromecast support in PhoneGap / Cordova

核能气质少年 提交于 2019-12-18 13:25:20
问题 This topic has been brought up in the past, but figured it's time to bring it to the forefront again. Are there any stable plugins out there to bring Chromecast support to PhoneGap / Cordova? Is a plugin still needed? Would love to get the discussion going again since multi-screen experiences are so huge right now. Thanks everyone. 回答1: There are a few plugins available, try them https://github.com/GetVideostream/cordova-chromecast // Android https://github.com/AVGP/cordova-chromecast //

phonegap / cordova select multiple photos

我怕爱的太早我们不能终老 提交于 2019-12-18 09:13:35
问题 Does anyone know if it's possible to select multiple photos from an album using phonegap/cordova? It's fairly easy to create an app to select one photo using the documentation but it is not documented how to select multiple photos??? Maybe I need some plugin for it (iOS/Android)? Or a workaround? This problem is really a show stopper for me so a decent solution to this would be great. 回答1: Currently the functionality is not available in the core API. There is an enhancement request open