WebPopup problem

Hi.

I’m starting a new iPad app which will feature mostly webpages.
I’ve tried using native.showwebpopup() but all I see is a quick flash of a white screen and it disappears.
I don’t see any Permissions requirement for iPad as I think that’s only Android.
I tested putting it into a Director app and added an image in the background and some text on top. That worked, but it still flashes up a white screen and it disappears when I add the webpopup.
Even just something as simple as this fails:

native.showWebPopup( 60, 60, 708, 964, "http://www.google.com", {urlRequest=listener} )  

Also quick Q: If I add in both orientations to the build settings will it auto-flip left to right or do I need to change code?
Thanks :slight_smile: [import]uid: 10389 topic_id: 9424 reply_id: 309424[/import]

Our project uses the director class and gets to be a few .lua files deep at times. One way I have found to make it all work is to do all the webpopup calls from the main.lua

I do get the flash of gray/white every time though.

Also, I use landscapeLeft and landscapeRight and it auto-flips with no additional code.
[import]uid: 7845 topic_id: 9424 reply_id: 34515[/import]

Did you ever sort this? I have a similar problem. A white ‘webpopup’ briefly appears and then disapears when on device.

***Solved for me

I’ll swallow my pride and fess up in the hope this will save someone else from wasting many hours.

I was calling the webpopup code in a touch event but wasn’t checking the phase so I’m guessing the code was called several times in quick succession causing it to fall over. [import]uid: 51494 topic_id: 9424 reply_id: 103409[/import]