Copy link to clipboard
Copied
The issue below is still not resolved in Air 28.0.0.112.
[iOS] StageWebView does not load nor display local HTML content (AIR-4198420)
The release notes say it has been fixed
Copy link to clipboard
Copied
Hi,
We have tried same at our end using 28.0.0.112 on iOS9, iOS10 and iOS11. Its working fine, please share more information with us.
Regards,
Adobe AIR Team
Copy link to clipboard
Copied
Hi surbhis32650692,
I still experience the same issue. I am using Animate CC to build Air for iOS app. HTML files downloaded to the iOS app's documentsDirectory on the iPad does not load from the stagewebview.
When you wrote that you have tried at your end using 28.0.0.112, where are the local HTML files located that you are able to load through stagewebview?
Do you have a source file or actionscript line by line that you can share?
Regards.
Copy link to clipboard
Copied
Hi,
Please Find the sample code which is working fine for us. Please Try this and let us know if this works fine for you as well. Also attaching the html file used.
var source:File = File.applicationDirectory.resolvePath("elements.html");
trace(source.exists);
var fp:String = new File(source.nativePath).url;
OR
var source:File = File.applicationDirectory.resolvePath("elements.html");
var destination:File = File.applicationStorageDirectory.resolvePath("page.html");
source.copyTo( destination, true );
trace(destination.exists);
var fp:String = new File(destination.nativePath).url;
try
{
webView.loadURL(fp);
}
Copy link to clipboard
Copied
<link rel="stylesheet" href="css/xxxx.css" type="text/css" />
<script language="javascript" src="js/xxxxx.js"></script>
<img src="./image/xxx.jpg" />
These tags do not work.
air 28.0.0.125
Copy link to clipboard
Copied
Hi surbhis32650692,
I tried your code with the elements.html, it worked. It only works if the HTML contains plain text. However, it does not work with more complex HTML that contains graphics and included JS files. Also, it threw an file not found error if it was trying to open an HTML file redirected from index.html that is in the same applicationStorageDirectory.
I believe this is the same problem same as kofl stated in his message above.
So this issue is not fixed. So far we still cannot use the new AIR for iOS since AIR26. We still have to stick with the old version. However, it's preventing us from fixing issue that occurs in iPhone X.
Please investigate this bug. Thank you.
Copy link to clipboard
Copied
Hi,
Thanks for reporting this issue. We are investigating it.
Thanks,
Pravishti | Adobe AIR Engineering
Copy link to clipboard
Copied
Hi, I saw AIR29 beta out but has no mentioning of fixing this bug. Do you have any status update? Thanks.
Copy link to clipboard
Copied
Hi,
This issue has been fixed. Please give it a try with AIR 29 Beta from Download Adobe AIR 29 Beta - Adobe Labs.
Thanks,
Pravishti | Adobe AIR Engineering
Copy link to clipboard
Copied
Hi Pravishti,
I have a kind of similar issue, I am trying to load an aspx page from Flex app through StageWebView and with the AIR 29 Beta.
It taking too long to load the pages.
Is it a known issue?
Regards,
Sravanthi
Copy link to clipboard
Copied
Hi,
Can you please provide a sample of reproducible resources so that we can investigate further.
Thanks,
Pravishti | Adobe AIR Engineering
Copy link to clipboard
Copied
HI Pravisthi,
We don't have sample code to reproduce it. As per my findings, callback function for flash.events.Event.COMPLETE
event is taking a while on desktop and taking more time ( more than 20 mins ) in iOS.
Please find the below code snippet which calls StageWebView custom component :
stgWebViewComponent.source = url + parameters + "&" + signature;
stgWebViewComponent.hideWebView();
stgWebViewComponent.addEventListener(Event.COMPLETE, handleContentLoadingComplete);
function handleContentLoadingComplete(evt:Event):void
{
stgWebViewComponent.showWebView();
stgWebViewComponent.includeInLayout = true;
stgWebViewComponent.visible = true;
stgWebViewComponent.removeEventListener(Event.COMPLETE, handleContentLoadingComplete);
}
Regards,
Sravanthi
Copy link to clipboard
Copied
I have been having a similar issue; it seems to boil down to the change from UIWebView to WKWebView and our inability to update this configuration on the WKWebView
wkwebview.configuration.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs")
If we could edit this configuration and set it to true as in the snippit then we should be able to load our local content properly within the WKWebView. Until then I am forced to use Air 25 and the previous version of Adobe Animate
Copy link to clipboard
Copied
I have been having a similar issue too, and I am forced to use Air SDK 25 too !