[AC-2766] iAd View Ads vanish without triggering any event.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-08-20T10:37:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | appcelerator, iad, ipad, iphone |
Reporter | Miles Lyon |
Assignee | Mauro Parra-Miranda |
Created | 2012-07-12T09:14:40.000+0000 |
Updated | 2016-03-08T07:47:40.000+0000 |
Description
I am more or less experiencing this issue while using the iad view:
http://developer.appcelerator.com/question/56541/iad-disappears-after-a-while---just-me
I have attached my iad control that falls back to admob if it recieves an error. I am putting a background image on the view behind my ad to compensate for this occurring, but basically the iad will vanish after a period of time without firing any event. Since there is not event I can't do anything to react to it and I'm stuck with my fall back image.
Attachments
File | Date | Size |
---|---|---|
ad_display_panel.js | 2012-07-12T09:14:40.000+0000 | 6341 |
Hi Miles, Could you please provide me a simple reproducible test case in app.js so that I can test it and see whats happening. Regards, Anirudh
Tested a sample app with iad. 'load' event is firing properly. http://pastie.org/4273680
If you wait ~10 minutes the iad will vanish and never reappear and nothing fires letting you know this happens. Seems to happen more often when you navigate to another window, wait a bit of time and revisit the last screen with the iad. It will be gone with just a blank spot where it was. edit: The intitial load will fire, or the error if it fails to load. The problem again is that the iad does load and it goes away, leaving a ugly empty blank space with no way to tell the app to fill it.
Try the following as a sample of the issue: Edit: error in original code: http://pastie.org/4273829 effectively the screen needs to adjust up and down to make space for the ad showing (so that controls are not covered). There are times when the error event doesn't fire and so the screen remains with a 50 pixel space at the bottom. In the discussion thread above there are similar explanations.
This is also a valid case for rejection from the appstore if you leave a blank space with no ad. It is just harder to catch this case as the initial load is handled correctly. But 'error' is never fired when subsequent loads fail.
Hi Miles/Paul, I could not reproduce the issue. The error event is fired and screen adjusts itself. Error event was fired after 10 load events and iad was hidden as written in the code. Regards, Anirudh
DUP issue.