showing Web popUp AFTER page load, how?

Hello!

Let me wish you a happy new year first!

I am currently investigating the use of Corona’s Web PopUp. My current problem is that the PopUp shows an empty screen while the web page (which is stored on the local file system) is loaded. This causes the screen to flicker horribly.

Is there any way to hide the PopUp until the page is completely loaded? (i.e. to hide it first and then to show it programmatically)

I tried to create the popup off-screen and then to move it in changing the .x position - but did not have any luck.

Thanks in advance for any hint!

Kind regards,

Andreas Rozek [import]uid: 4331 topic_id: 4766 reply_id: 304766[/import]

Just as an additional note:

adding the Web PopUp to a group and shfting that group into view after loading did not work either - the PopUp simply did not appear!

Kind regards,

Andreas Rozek [import]uid: 4331 topic_id: 4766 reply_id: 15238[/import]

Its getting strange (and difficult, as apps with web popups cannot be tested in the simulator)!

It currently seems as if my “timer.performWithDelay” function does not get called as soon as I create a web popup! Consider the following code:

 StageWidth,StageHeight = display.contentWidth,display.contentHeight;  
  
 local function onURLRequest (Event)  
 return true;  
 end;  
  
 Background = display.newImage("Default.png", 0,20);  
  
 BrowserGroup = display.newGroup();  
 BrowserGroup.x = StageWidth;  
 BrowserGroup.y = 0;  
--[[  
 Browser = native.showWebPopup(  
 StageWidth,20, StageWidth,StageHeight-20, "index.html",{  
 baseUrl = system.ResourceDirectory, --hasBackground = false,  
 urlRequest = onURLRequest  
 }  
 );  
 BrowserGroup:insert(Browser);  
--]]  
  
 timer.performWithDelay(4000, function (Event)  
 Background.isVisible = false;  
 BrowserGroup.x = 0;  
 end);  

Within the simulator, the background disappears after 4 seconds - on the real device, it remains visible forever after removing the --[[–]] brackets!

Is this a bug or do I make a fundamental mistake?

Thanks in advance for any hint!

Kind regards,

Andreas Rozek [import]uid: 4331 topic_id: 4766 reply_id: 15239[/import]