phonegap 2.0 with admob/iads - ios

I've been searching for hours for a guide/tutorial on how to implement either admob or iads in an iOS app build with PhoneGap 2.0. So far I've been searching in vain. The closest I have gotten to an answer is this:
http://iphone.keyvisuals.com/iphonedev/implementing-admob-ads-in-a-phonegap-project-for-ios-no-plugins-required/
I dont have any objective-c experience and in the above mentioned link I can get past 3rd step. I have tried to download the demo and look at the code, but the app can't even be built. Probably because I'm using PhoneGap 2.0 and not an older version.
Are any of you guys able to guide me, or know of any helpful links for this to succeed?

How about using this plugin from github? Looks like getting it setup shouldn't be too bad.

Related

How to make plugin for Xcode6

I want to make plugin for Xcode6 but i don't know how to start and make that.Any one please share any link that explains this in detail for Xcode 6? I find for Xcode 4 but that method is not working for xcode6
I am the creator of IntelliPaste for Xcode.
Plugin development for Xcode is fun but will also be hard at times. There is no documentation that can be found, at least not from Apple. A lot is guess work and look at how other people's plugins are made.
To get started, I would recommend using this template. I haven't used it myself but I wished something like that was around when I got started.

Are there any simple PhoneGap tutorials?

I have found zillions of tutorials that none of them was clarifying all information to get started easily with phonegap.
And phonegap documentation it self is pretty confusing and bulky.
However, my request is:
A simple tutorial to build jquerymobile web project with phone gap without any extra SDK's
And how to get the debug and release keys for app stores..
Thanks in advance
Here's a line by line tutorial: http://www.gajotres.net/building-a-native-mobile-app-with-phonegap-and-jquery-mobile-1-4/
If you need MaxOS version you can find it here: http://www.gajotres.net/creating-phonegap-project-on-macos/
It is my personal blog but there's no point in writing it everything here. Feel free to ask me if you have more questions.
Well it doesn't use jQuery but I have quite a step-by-step PhoneGap tutorial for beginners up at https://github.com/drappenheimer/phonegap-by-dissection
It makes no assumptions, and the end result is an actual app! (https://play.google.com/store/apps/details?id=com.drappenheimer.japxlate)
A good place to start PhoneGap would be this step by step tutorial. How to install/run PhoneGap on Ubuntu, Step by step guide.
Here are two another tutorials from the end of 2014.
Phonegap / Cordova - iOS Tutorial
Phonegap / Cordova - Android Tutorial
If you need more information about those guides - let me know.
Since PhoneGap is evolving every day, I would like to add a few more links to this answer.
Nowadays, you can use Cordova (aka PhoneGap) with any modern web framework such as Angular, React, Vue JS instead of JQuery mobile
Reference Links:
https://www.tutorialspoint.com/phonegap/
PhoneGap Tutorial
https://medium.com/#nacojohn/convert-your-angular-project-to-mobile-app-using-cordova-f0384a7711a6
http://coenraets.org/blog/2014/12/sample-mobile-application-with-react-and-cordova/

UserVoice integration in an Phonegap application

I have this iOS Phonegap application and I need to integrate UserVoice. I follow this tutorial and I have reached to the point I have to make the configuration. I am really not sure where I have to put that object UserVoice are providing me with:
UVConfig *config = [UVConfig configWithSite:#"YOUR_USERVOICE_URL"
andKey:#"YOUR_KEY"
andSecret:#"YOUR_SECRET",
andSSOToken:#"SOME_BIG_LONG_SSO_TOKEN"];
I'll appreciate some help with that, since I'm really on a beginner level with iOS apps in general. Thanks in advance.
The code you posted comes from the UserVoice for iOS SDK which gives you the libraries and code necessary to include UserVoice in a native iOS app and will not work with a PhoneGap app.
Your options are to write a PhoneGap plugin, in Obj-C, to expose the UserVoice library, or possibly a better option is simply to open your UserVoice page within your PhoneGap app using the InAppBrowser plugin.
Here is a simple phonegap plugin
http://developerextensions.com/index.php/cordova-phonegap-plugin-uservoice
I took the code from here: http://developerextensions.com/index.php/cordova-phonegap-plugin-uservoice and followed their instructions.
There were some additional things I needed to do:
edit the config.xml and add the feature UserVoiceCommand
edit the .js file and replace Ext.emptyFn with function(){}:
cordova.exec(function(){}, function(){}, "UserVoiceCommand", "launch", [config]);
(those are the success and failure callback, which I intend to implement as well)
Since it was not functioning correctly on iOS7, I cloned https://github.com/uservoice/uservoice-ios-sdk, compiled it by running ./build.sh and then overwritten the files that came with the plugin.
You can now get iOS+Android support from this new cordova plugin:
https://github.com/Resgrid/cordova-plugins-uservoice
P.S. I am not affiliated to this plugin by any means, just came across it.

How to set URLSchemes for facebook ios sdk

I've spent a whole day on this issue and didn't find any good answer after hours of googling and debugging. I've finally solved the problem and I will share it here.
The documentation for setting up facebook-ios-sdk shows how to set up a url scheme that is used to return the user to your app after authorization. Something like fb12087732691...
Unfortunately, they are using an older version of Xcode and the graphic looks like this:
What it really should be, using Xcode 4+, is this:
Hope this saves someone a few hours of their life!!!
There's a AppName-Info.plist file in your project. Open it and you will find the similar stuff. It's universal for Xcode4+ (as far as I know).

How to install phonegap Facebook plugin for iPhone

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.

Resources