Phonegap and Jquery Mobile

632 views
Skip to first unread message

silas ribeiro

unread,
Jun 21, 2013, 10:29:14 PM6/21/13
to phon...@googlegroups.com
I wonder if it is advisable to use jquery mobile with phonegap, because I think it's a bit slow, and if you have some tips to improve performance?

Eu gostaria de saber, se é aconselhavel usar jquery mobile com phonegap, pois acho ele um pouco lento, e se tem algumas dicas para melhorar a desempenho?

Devgeeks

unread,
Jun 21, 2013, 11:48:23 PM6/21/13
to phon...@googlegroups.com
I always advise against using jQuery Mobile for PhoneGap apps.

There are other UI frameworks if you HAVE to go that way, but the best way is to build your app with html/css/js of your own.

Loiane Groner

unread,
Jun 22, 2013, 5:20:16 PM6/22/13
to phon...@googlegroups.com
There are other frameworks you can take a look at such as Sencha Touch and Kendo UI. But again, you need to know how to use these frameworks really well, otherwise you app can be slow as well.

Tem outros frameworks que você pode olhar como o Sencha Touch (meu preferido e é gratuito) e Kendo UI (pago). Como já mencionaram, a não ser que vc saiba usar esses frameworks muito bem, sua app também pode ficar lenta.

Loiane Groner


--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Norbert Ryan

unread,
Jun 22, 2013, 6:13:32 PM6/22/13
to phon...@googlegroups.com
I have built two apps with PhoneGap and jQuery Mobile - one major problem i have found is that 

    jQuery Mobile is architecturally incompatible with the javascript from Google Adsense

i think* it is NOT possible to monetize your jQuery Mobile app with Google Adsense - big disappointment for me.  


several links on Stack Overflow and other forums will show how to get Google Adsense to work with jQuery Mobile - but all of those hacks seem to violate Google Adsense's terms & conditions - many people have commented that Google shut down their ad account.

i thought that ads would be simple - every time a user visits a different page in my app, i would like to serve a new Google Adsense ad.

as of june 22 2013, i haven't found a legal way to accomplish this with jQuery Mobile and Google Adsense... 

i'm posting this info in several forums, hoping that this situation is recognized and fixed.   also, i hope that i'm not spreading rumors - if somebody has a solution please speak up.  

jcesarmobile

unread,
Jun 23, 2013, 3:46:30 AM6/23/13
to phon...@googlegroups.com
Jquery mobile and adsense incompatibilities shouldn't matter as adsense is forbidden on mobile apps, you should use admob instead

Norbert Ryan

unread,
Jun 23, 2013, 10:56:13 AM6/23/13
to phon...@googlegroups.com

"If you're looking to monetize a mobile site designed for users of iPhone, Android, or other high-end devices with browsers capable of executing Javascript, simply use any standard AdSense for content ad unit that fits your mobile-optimized site."

jcesarmobile

unread,
Jun 23, 2013, 10:59:39 AM6/23/13
to phon...@googlegroups.com
Mobile site, not mobile app, phonegap is for mobile apps, and this is phonegap group, so we are talking about mobile apps

from https://support.google.com/adsense/answer/68724?hl=en

The use of AdSense for mobile in a mobile application is a violation of AdSense policies. A mobile application constitutes any downloadable application, even if a WebView is used to display the ad. Any AdSense for mobile ad units found in mobile applications will be disabled. If you’re looking for an advertising solution for your mobile application, please sign up for AdMob, Google’s leading mobile advertising display product.

Norbert Ryan

unread,
Jun 23, 2013, 12:05:20 PM6/23/13
to phon...@googlegroups.com
ok - good point.  but isn't google admob an sdk - is it possible to integrate Admob's sdk with Phonegap??

i've used Phonegap/jQueryMobile to create two apps - and i use Phonegap Build to deploy to both iOS and Android.
i would like to serve a new ad on each of the pages.   the apps are html5, js, css. 

it's not clear to me which google ad offering to use....

jcesarmobile

unread,
Jun 23, 2013, 12:18:54 PM6/23/13
to phon...@googlegroups.com
I don't know if you can do it with phonegap build, but you can do it with phonegap on Android, for iOS you'll need a plugin, not sure if it exists, but there is an iAd plugin https://github.com/shazron/iAdPlugin

Joram Teusink

unread,
Jun 27, 2013, 8:55:20 AM6/27/13
to phon...@googlegroups.com
There is a workaround for that. If you want adds, then you can add the ad from the Java code to the bottom or the top (what you like). With some Googling you should find the solution.

But you are right considering the point you make: no addsense in JQM. Simply does not work.

Op zondag 23 juni 2013 00:13:32 UTC+2 schreef Norbert Ryan het volgende:

Joram Teusink

unread,
Jun 27, 2013, 8:55:54 AM6/27/13
to phon...@googlegroups.com
I use it and it is fairly fast. It is running fluid on phones like Galaxy Nexus.

For a nice example, check my blog: http://teusink.blogspot.nl/2013/04/android-example-app-with-phonegap-and.html

Op zaterdag 22 juni 2013 04:29:14 UTC+2 schreef silas ribeiro het volgende:

Norbert Ryan

unread,
Jun 27, 2013, 9:49:15 AM6/27/13
to phon...@googlegroups.com
thanks for the suggestions joram  -- here's a brief summary (covers last 2 years of dev) of where i'm at....

version 1 of my app was native iOS app.  then i realized android was gaining big marketshare so i looked around for a cross platform solution.  i decided on phonegap and jquery mobile because they are cross-platform.   i don't have the people/resources to make native apps.  

we'll now i have two apps and version 2 is coded in phonegap and jquery mobile.  i thought that it would be easy to put a 320x50 pixel ad at the bottom of each "page" - one days work at most.  

it is not easy.  as of now, i don't know of any cross platform ad solutions.  legally i shouldn't use Google Adsense and the javascript for adsense isn't compatible with jquery mobile.  and Google Admob is a Java SDK - and therefore not cross platform.  since they are java based, i could prob make admob work on android and possibly blackberry but it wouldn't work on ios or windows mobile.  

in summary: i've now got two decent, cross-platform apps but no cross platform ad solution.

jcesarmobile

unread,
Jun 27, 2013, 12:47:00 PM6/27/13
to phon...@googlegroups.com
Admob have an iOS SDK
Admob on android, if I remember well, was just adding the .jar and a line of code or 2 (the banner ad)

Joram Teusink

unread,
Jun 27, 2013, 2:04:32 PM6/27/13
to phon...@googlegroups.com
Perhaps this can help?


But I guess it is a no go. Perhaps monetize by donation and extra features?


2013/6/27 jcesarmobile <jcesar...@gmail.com>
Admob have an iOS SDK
Admob on android, if I remember well, was just adding the .jar and a line of code or 2 (the banner ad)
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go to www.phonegap.com

To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/CXOy5_FftOQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


Marco Schivo

unread,
Apr 1, 2014, 5:24:58 AM4/1/14
to phon...@googlegroups.com
Hi, can you tell me how exactly do you set jQuery Mobile to work? I don't understand how to set.
Thanks

Rjfun Mobile

unread,
Aug 26, 2014, 3:25:45 AM8/26/14
to phon...@googlegroups.com
Using a mature admob plugin is a good option to show Ad.

There are quite a few options, just 1-2 line of javascript code, it's done.


See the example code.
Reply all
Reply to author
Forward
0 new messages