I am using PhoneGap 3.3.0-0.19.6 and Cordova 3.3.1-0.4.2 but HideKeyboardFormAccessoryBar=true doesn't work. I checked other related questions and the solution (at least for PhoneGap 2.7) is to edit CDViewController.m (under Classes/Cleaver), but apparently this file is missing in Phonegap 3.3
Please help!
I use KeyBoard plugin to fix this problem. (I'm currently in phonegap 3.4.0)
To download it, either
Type 'cordova plugin add https://github.com/apache/cordova-plugins.git#dev:keyboard' in your project folder
Or type 'phonegap local plugin add org.apache.cordova.keyboard', and update the newest code from KeyBoard plugin.
For Further infomation, visit phonegap CB-3020 jira. (sorry, I not allow to post more than 2 links)
Good Luck!
Related
i have cordova application in IOS.I am using x code to modifying in application. actually i am new to mac and IOS i want to know how to add custom or third party cordova plugin in my IOS application.Any tutorial or guidance any one recommend?
You use cordova, to add plugins you use:
cordova plugin add *pluginname*
in the installation process it will be added to all platforms that the plugin supports. For further information about that you have to read the readme files of the plugin. They explain that for every part of their plugins better than we can here in our short texts.
If you have any further question, just ask :) Have a nice day.
You can use the command cordova plugin add PLUGIN_NAME
Please check the documentation from Cordova for other options to update, remove, build the plugin https://cordova.apache.org/docs/en/3.1.0/guide/cli/index.html
I am developing a webapp using phonegap + sencha touch, and I want to lock orientation on certain pages during runtime. I found this phonegap plugin , but it's not working for phonegap 3.X.
I also found something about a js function which named 'shouldRotateToOrientation', is it provided by phonegap? And it seems just works in multi-page(html files) app, my sencha touch app only have one html file.
So, how can I do that? Any help from you will be greatly appreciated.
i know this is not really a valid "answer" but SO doesn't let me comment with <50 rep. anyway, i noticed it's not that difficult to set up an old plugin to be used with cordova 3+. adhere to the folder structure (which you can see in existing cordova plugins like "device"), create a plugin.xml and install the plugin with plugman. read the documentation about plugin development and you should be good.
you will especially have to replace the function header in the ios files. replace
-(void)setAllowed:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options
with
- (void)setAllowed:(CDVInvokedUrlCommand*)command
This is a phonegap plugin for android/ios.
https://github.com/yoik/cordova-yoik-screenorientation
Is it possible to use the PowerManagement Phonegap Plugin found here https://build.phonegap.com/plugins/29 with Phonegap 3.0 on iOS6,7?
If so, is it still enough to place the following element to the config.xml?
<gap:plugin name="com.simplec.plugins.powermanagement" />
Or is there a way to install it the Phonegap 3.0 way messes up the iOS version of the app:
phonegap local plugin add https://github.com/simplec-dev/powermanagement.git
What I want to achive is, that my app runs endless and the iPhone power saver gets suppressed.
Thanks for a hint.
I'm not sure if the original author has updated the plugin to be compatible with PhoneGap 3.0 yet - but I maintain a fork of it that I have updated that should work. It lives here but you should be able to install from the CLI like this:
$ cordova plugins add https://github.com/cemerson/cordova-powermanagement.git
Also, I'm not sure how recently you've used the plugin but the syntax/usage has changed over the past months/year. I have a few helper scripts that I normally use here if you want to modify/use.
PS: Naturally if the original author has updated the plugin somewhere to be 3.0 compliant definitely use that version! Use the above only if that's not the case or you have other problems!
Cordova plugin PowerManagament for 3.0+
https://github.com/raulduran/PowerManagement
I'm trying to make an app which uses the barcodescanner plugin for IOS which comes with the phonegap plugin library (latest build / phonegap 1.4). I have allready made the Android version with the same plugin for android, and it worked fine. I have followed the instructions step by step and it won't work for me.
I'm getting an com.phonegap.barcodeScanner not found, and i have checked that the plist is correct etc.
I have copied the new scanneroverlay.xib to the project so i don't have to play with the overlay.
I have copied all the mm c h files to the plugin folder. No error when building. Does i have to compile the plugin or??? is there someone who has a test app or a good idea please.
Getting a little frustrated.
Kind regards.
/Mikael
Check that you have a reference to the barcodescanner.js in the index.html file, and that it is finding it okay.
i'm making a project for school and I want to use the phone gap Facebook plugin for iOS, but the installation instructions in the text file is rather complicated. I was wondering if someone got a great link on how to install it, or maybe someone has an example project or even could help me with installing it because I fail extremely in installing it.
Kind Regards,
Bart
I've created this tutorial / example for how to use Facebook inside of Phonegap without the plugin, it is similar but is more expandable and is easy to setup and use.
This explains everything in pretty good detail
http://www.drewdahlman.com/meusLabs/?p=88
check out the GIT
https://github.com/DrewDahlman/phonegapFacebookApp
hope this helps!
PhoneGap posted a YouTube video detailing the install process step-by-step. Note that 1.4.1 is the most recent supported version of PhoneGap - the 1.5 Cordova update is not yet supported.