Admob freezes app when launching from home screen

656 views
Skip to first unread message

Luke R.

unread,
Jun 13, 2013, 3:43:00 PM6/13/13
to google-adm...@googlegroups.com
I have Admob ads running in a Phonegap app (https://github.com/phonegap/phonegap/wiki/In-App-Advertisements. Option 2). Sometimes when I launch my app from the home screen, it will freeze and not open at all for 5 seconds. It just keeps showing the home screen. Then all of a sudden it switches (no transition at all) to the fully loaded app. This usually only happens a while after I first opened the app. For example, if I force stop and re-open for the first time, it never happens. I don't know for sure that this is caused by Admob; however, the fact is I have a 5 second delay for loading ads in onCreate()... and 5 seconds is how long the freeze is. Plus I never had this happen before I implemented ads. Any ideas? I don't like having a frozen app for 5 seconds, I need this fixed! Thanks

Todd Huss

unread,
Jun 15, 2013, 8:03:02 PM6/15/13
to google-adm...@googlegroups.com
I've seen the same issue on a regular (non-Phonegap) iOS app with the 6.4.2 SDK (and earlier as well). When I get lucky enough to have it happen when I'm debugging, if I hit pause in Xcode, the main thread is hanging on a semaphore_wait_trap (often the main thread is doing core animation or something related to a webview when it hangs on the semaphore wait trap).

I've never had it happens when I have AdMob commented out (which I often turn off when I'm developing) so while I'm not 100% sure it's AdMob in my case it seems quite likely.

I'll continue to post updates here as I gather more information on this, however, I haven't found a reliable way to reproduce it yet.

-Todd

Thomas Iguchi

unread,
Jun 17, 2013, 10:40:01 AM6/17/13
to google-adm...@googlegroups.com
I have a similar problem with AdMob. In some cases on my oldish test phone (and it's also been reported by 1 other user of my app) it simply hangs indefinitely until the "application not responding" message pops up. It never happens though when I clear the application cache prior starting the app. And it also never happens in the paid version of my app since AdMob is not integrated there.

Eric Leichtenschlag

unread,
Jun 17, 2013, 12:56:40 PM6/17/13
to google-adm...@googlegroups.com
Hi Luke,

Can you double check and make sure that your 5 second delay is not running on the UI thread? Perhaps add a logging statement after the mHandler.postDelayed to make sure that you aren't getting stuck on onCreate() for 5 seconds? The AdMob SDK requests an ad on a background thread; the app shouldn't be holding up the main thread for an ad response.

Thanks,
Eric


On Thu, Jun 13, 2013 at 12:43 PM, Luke R. <lukasr...@gmail.com> wrote:
I have Admob ads running in a Phonegap app (https://github.com/phonegap/phonegap/wiki/In-App-Advertisements. Option 2). Sometimes when I launch my app from the home screen, it will freeze and not open at all for 5 seconds. It just keeps showing the home screen. Then all of a sudden it switches (no transition at all) to the fully loaded app. This usually only happens a while after I first opened the app. For example, if I force stop and re-open for the first time, it never happens. I don't know for sure that this is caused by Admob; however, the fact is I have a 5 second delay for loading ads in onCreate()... and 5 seconds is how long the freeze is. Plus I never had this happen before I implemented ads. Any ideas? I don't like having a frozen app for 5 seconds, I need this fixed! Thanks

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Eric Leichtenschlag | Developer Programs Engineer | eleich...@google.com | 650-776-5591

Reply all
Reply to author
Forward
0 new messages