Has anyone used David Orchard's fork for in-app purchases with PhoneGap? It hasn't been updated in over a year. According to this thread Urban Airship can't help yet.
Ah! I just needed to look a bit harder, this PhoneGap plugin should work perfectly. I'll comment here how well it works with Urban Airship.
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/InAppPurchaseManager
The phonegap plugin suggested by daniellmb works well. Please keep the following in mind
CORDOVA_FRAMEWORK in InAppPurchaseManager.h, remove all the code around that. You will run into 'CDVPlugin.h' file not found in inAppPurchaseManager.h, this is how both import should look
#import <Cordova/CDVPlugin.h>
#import <Cordova/NSData+Base64.h>
If you get the errror Plugin 'InAppPurchaseManager' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist. You have to add the following to Cordova.plist
<key>InAppPurchaseManager</key>
<string>InAppPurchaseManager</string>
Related
I am trying to integrate medium insert plugin(https://github.com/orthes/medium-editor-insert-plugin). I have set it up according to the instructions. Everything works fine except it is giving me the error in the console when i hover over the + button as:
I have not made anything to the example code.
Any help is greatly appreciated.Thanks in advance.
I finally found the solution to this problem.
Since i downloaded the plugin directly from the git repo and installed its dependency using bower, it pulled all the latest plugins and it turns out the latest plugin for medium-editor(ie. v5.21) is not compatible with the current latest version of medium-insert plugin(ie v2.x). So i downloaded v5.9 of it(medium-editor) and voila it worked.
I am trying including the OpenEars plugin into phonegap/cordova using this plugin https://github.com/karljacuncha/OpenEarsPlugin
I followed the Readme but i ended up with an error of missing files, all these files are not found :(
Any help/suggestion on how to integrate the library?
thank you any advice appreciated!
As already mentioned on a comment, new, non-backwards compatible version (2.0) of OpenEars was released on 5th of December in 2014. This of course prevents it from working with old code such as the plugin in this case.
Basically there would be two options to get it working:
Use older version of OpenEars (last one was 1.7.1) but that doesn't seem to be possible as I wasn't able to download it from anywhere after extensive search.
Fix the code to work on newest OpenEars. It shouldn't be that hard and the code of plugin is only ~400 lines of code. Most of the changes are quite straightforward as described in the upgrade guide. Feel free to fork the project in GitHub or try to contact the original author of that plugin to make the fixes necessary.
I'm programming an android app using Applicationcraft, but then I need to create my own plugin for a certain requirement. So I downloaded my app from applicationcraft, then compile it manual using phonegap 1.7.0, but I'm having a problem with my plugin. I have followed every steps in this tutorial, but whenever I use my plugin in a test device I always get this error:
Cannot call method "myfunction" of undefined.
Function: callingFunction
I also consult another question here, but I still having the same problem.
Can anybody tell me what are the possible solutions? Or point me to the right direction (any tutorial for making plugin for PhoneGap 1.7.0). Thanks.
No need, I've already found it here.
I've been playing with SourceKit, which is an awesome Chrome app for editing your Dropbox files using the Ajax.org Code Editor. In the release notes for version 0.5 and the readme, the author says
Arbitrary Javascript "plugins" are loaded post initialization from your Dropbox account. It is loaded from /.sourcekit/plugins/"
I've tried putting some Javascript in that directory, but can't seem to get anything to execute. Does anyone know of documentation for or examples of SourceKit plugins?
(I've submitted an issue on the GitHub project, but have gotten no response.)
SourceKit dev here. Forget about the old styled plugins that I was referring to in the old README CHANGELOG entry. I switched internally to use Dojo, Ace and Require JS. I haven't gotten to the point of adding plugin support just yet with this new rewrite...
It'll come in due time! In the meantime, if you have any ideas, I do take in pull requests via github: http://www.github.com/kenotron/sourcekit
It looks like these plugins for Bespin at Mozilla Labs should fit the bill but they don't seem to function at all at the moment. This "plugin_manager.js" file from the pilot library looks like it does just that for the SourceKit project and it was/is the same deal for Bespin/Skywriter/ACE.
I don't think at this stage there are any "downloadable" plugins for SourceKit, but the plugins in the Bespin Gallery might be worth hacking at.
I've been testing a website on mobile devices which uses a simple hide() / show() on a form. Works great on the desktop but not at all on mobile devices. Does anyone know if the functions are supported?
Using jQuery 1.5
Thanks
Ric
Yes, jQuery works fine on iPhone and Android.
yes works fine,
I had done in many projects for smartphones (iPhone, Android) specially and works as charm
you can be sure for this, because, new mobile web framework, jQtouch, and jQuery mobile is in jQuery and alot others too.
Ric I wouldn't say that combining all of the JS files together is really that bad of a solution, in fact I think that minifying and combining JS code is a great practice, unless you need people to be able to read your JS from source for some reason. Glad you got it fixed.
Okay, this is a terrible answer and thanks to everyone for their help.
In the end I combined all the JS files together. This fixed the script execution order problem on iPhone / Android. I'm not sure why it was happening on this particular site, and only on mobile phones.
It's not a very elegant solution and I do not recommend it. In my case it was for a temporary microsite so decided it was acceptable. Should I discover more about the problem I will post it here.
As Colt pointed out I was a bit rash saying it wasn't en elegant solution combining all the files together. In fact it is just what you should be doing! My frustration was that desktop and mobile browsers handled the JS different, and when developing the site I don't combine/minify the files until I know they work. Makes debugging and updating libraries easier.
As I feel bad for suggesting poor advice here's a little top tip: When on the production server I use Smart Optimizer (http://farhadi.ir/works/smartoptimizer) to handle joining, minifying, GZipping and caching the files for me. Means my dev code remains nicely seperated and it's easy to up jQuery, plugins etc but on the live site everything is nicely stuck together.