I have a followed adobes stageWebView example that loads a local html file in a stageWebView, I am using the code to show admob ads...
Well, the project works fine on Android, but on IOS (ipod touch) nothing happens? the stageWebView is just a white rectangle
I am debugging using remote debug, and everything seems fine, the local file url is resolved fine, but after calling the loadurl method nothing happens, I am not getting any events or errors?
I am listening for the following events:
I have allso tried with loading a online file, but with the same result...
Again, I will mention that the code works perfect on android (HTC Desire).
where do I set the app permissions similar to the android permissions? (I am working in Flash CS 5.5)
It seems that the source needs to be at a URL for it to work using loadURL(). Maybe it would work on a device and not in test movie? In any case, another way to go, that does work in test movie, is to use loadString(). Try this with your test html embedded in the app:
var webView:StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight );
var req:URLRequest = new URLRequest("viewad.html");
var ldr:URLLoader = new URLLoader();
Hi Colin, thanks again for your response.
All my testing is done on the device, using remote debugging through flash cs5.5.
I tried your code, it worked fine on desktop,with the ad showing up, I monitored all the urlloader events doing this test.
When I testet your code on the device the screen was entirely black with no ad, I allso monitored the events here, and they where all the same as on the desktop test? 1 httpStatusEvent status 0, and 1 complete event.
The interresting thing about your code is that the screen rendered black, this could be the background color of the html (the project background is white) in my own attempt the screen was white.
Maybe using native extension will help you on your iOS problem. There's one that utilize iOS WebView published here http://darkredz.com/introducing-ios-uiwebview-and-videoplayer-native-e xtension-for-air-mobile/
Europe, Middle East and Africa