Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11386] iOS 6: Statusbar overlaps iAd

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-01-21T18:20:09.000+0000
Affected Version/sRelease 2.1.2, Release 2.1.3, Release 3.0.0
Fix Version/sRelease 3.0.2, Release 3.1.0, 2013 Sprint 02 API, 2013 Sprint 02
ComponentsiOS
Labelsapi, qe-port
ReporterDaniel Lim
AssigneeVishal Duggal
Created2012-10-01T19:19:34.000+0000
Updated2013-03-12T05:32:51.000+0000

Description

Statusbar overlaps iad view on 3.5-inch iPhone 4 but works on iphone5. Happened on simulator and actual device. The bar covered half of the iad view "close" button. Posted on community as well http://developer.appcelerator.com/question/142930/statusbar-overlaps-iad-on-ios6 See screenshots

Attachments

FileDateSize
iad-iphone4.png2012-10-01T19:19:34.000+000048547
iad-iphone5.png2012-10-01T19:19:34.000+000051162

Comments

  1. Stephen Feather 2012-10-01

    Daniel, Could you put together a test case to demonstrate this please?
  2. Daniel Lim 2012-10-01

    i will try, i built a simple case but the iad doesn't show.
  3. Daniel Lim 2012-10-02

    OK, I was able to duplicate the issue with simple case. I think the issue may be related to navigation group. Wait for ad to load, but it will likely not, just shown white background on the bottom. Once you see that, click on "back" to close the window then open it again. The banner would be there this time, click on it, you should be the statusbar blocking the ad view on iphone4 simulator.
       Titanium.UI.setBackgroundColor('#000');
       var baseWin = Titanium.UI.createWindow({ 
           backgroundColor:'transparent',
           tabBarHidden:true,
           navBarHidden:false,
           translucent:true
       });
       
       
       var mainWin = Titanium.UI.createWindow({ 
           backgroundColor:'transparent',
           tabBarHidden:true,
           navBarHidden:false,
           translucent:true,
           barColor:'#000'
       });
       
       var openwebWIN = Ti.UI.createWindow({ 
           top:0,
           backgroundColor:'#000',
           statusBarHidden:false,
           tabBarHidden:true,
           navBarHidden:false,
           barColor:'#000',
           width:'100%',height:'100%',link:''
       });
       
       var navGroup = Ti.UI.iPhone.createNavigationGroup({
         window:mainWin
       });
       
       
       var childweb = Ti.UI.createWebView({backgroundColor:'#F2F2F2',top:0,bottom:50});
       
       var iadview = Ti.UI.createView({width:320,height:50,bottom:-100,opacity:0,backgroundColor:'#FFF'});
       openwebWIN.add(iadview);
       
       var headerweb = Titanium.UI.createLabel({color:'#FFF',height:50,text:'loading iad, wait….',textAlign:'center',font:{fontSize:14}});
       
       openwebWIN.setTitleControl(headerweb);
       openwebWIN.add(childweb);
       openwebWIN.add(iadview);
       openwebWIN.addEventListener('open',function(e){
       	       Ti.API.info('openwindow ');
       });
       
       mainWin.addEventListener('open',function(e){
       var open = Titanium.UI.createButton({
       	color:'#FF0000',
       	title:'Open NavGroup iad',
       	font:{fontSize:20,fontFamily:'Helvetica Neue'},
       	textAlign:'center',
       	width:200,
       	backgroundColor:'#FFF'
       });
       
       open.addEventListener('click',function(e){
       	       Ti.API.info('open ads ');
       Ti.App.fireEvent('openweb');
       });
       
       
       mainWin.add(open);
       
       });
       
       
       
        Ti.App.addEventListener('openweb', function(e) 
       {
             navGroup.open(openwebWIN);
             childweb.url='http://www.google.com';
             if (parseFloat(Titanium.Platform.version) >= 3.2){
                
       			 var iad = Ti.UI.iOS.createAdView({height:Ti.UI.SIZE,width:Ti.UI.SIZE});
       			      iadview.add(iad);
       	         iad.addEventListener('load', function(e){
       	         Ti.API.info('loaded '+iad)
       	         iadview.bottom=0;
       	         iadview.opacity=1;
       	         headerweb.text='iad loaded!'
                  });           
              }  
       });
       	             
       baseWin.add(navGroup);
       baseWin.open();
       
  4. Daniel Lim 2012-10-11

    Tested again on iOS 4.3.2, 5.0 and 5.1 and it's OK. So, it's only failed on iOS6.
  5. Daniel Sefton 2012-10-11

    Tested and confirmed on iOS 6 TiSDK 2.1.2 GA, 2.1.3 GA, 3.0.0. Works as expected on iOS 5.1. I'll move this over to TiMob now.
  6. Ingo Muschenetz 2012-10-16

    In speaking with API, fixing this properly would require substantial architectural work. We will revisit this in a future revision (i.e. 3.1) The current suggestion is for users to use a TabGroup instead and hide the tabs instead of using the iPhone.NavigationGroup.
  7. Vishal Duggal 2013-01-15

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/3712
  8. Vishal Duggal 2013-01-18

    Backport task TIMOB-12346 Backport PR https://github.com/appcelerator/titanium_mobile/pull/3735
  9. Sabil Rahim 2013-01-21

    PR processing .. Testing PR against all tickets marked for regression.
  10. Paras Mishra 2013-01-23

    Works fine. Verified on : iphone 4,iphone 5 SDK version: 3.0.2.v20130122172624, 3.1.0.v20130111163212 CLI version : 3.0.23 OS : MAC OSX 10.7.5 XCode : 4.5.1
  11. Naga harish M 2013-03-12

    This is have problem Verified on iPhone 4s SDK version : 3.0.2 GA OS: MAC OSX 10.8.2 XCode : 4.6 I Updated here also http://support.appcelerator.com/tickets/APP-124974

JSON Source