Skip to main content
July 29, 2011
Question

Does stageWebView differ from Safari browser on iOS?

  • July 29, 2011
  • 1 reply
  • 988 views

I'm using the "stageWebView" to display a checkout page in my App. If you load the page on Android using stageWebView it works. If you load it in Safari (iOS/iPhone) it works. But if you load it in "stageWebView" on iOS/iPhone it doesn't work.

Is there some difference in how stageWebView works on the same plattform? I thought it was just "re-using" the in-mobile browser (or webkit?).

Thank you

This topic has been closed for replies.

1 reply

July 29, 2011

Hi:

Can we know what exactly is happening? If you register to all events on SWV

what all events do you receive? What about some error event do you receive

it? Are you loading local HTML file? Or something from web?

Thanks,

Saumitra Bhave

AIR iOS

July 29, 2011

Hi Samuitra

The problem is that the page isn't displaying the same as in Safari (it's not loading). This is the page (you can try it yourself as much as you like... well maybe not pay ;P) http://www.digital2photo.se/orders

You load the page. Click the submit button and it should take you to a page where you enter your cc details to pay. But you never get there (there's some form of a redirect).

I register these events:

webView.addEventListener(Event.COMPLETE, showWebView);
webView.addEventListener(ErrorEvent.ERROR, onWebError);
webView.addEventListener(LocationChangeEvent.LOCATION_CHANGE, onWebLocationChange);

The error event doesn't fire anything, b/c I don't think there's anything "wrong" really. It mainly just the stageWebView not handeling the redirect which Safari does.

Thank you

July 29, 2011

Hi:

The problem is with the native UIWebView control that iOS SDK provides (AIR

wraps this same control in SWV). You would probably want to discuss this on

Apple sites, As I tried the same URL in native application with UIWebView

and issue reproduces there too.

What I found is that I infinitely keep getting complete events (Both in

Native app and AIR) for the URL https://www.payson.se/merchant/default.aspx.