Highlighted

Air28.0.0.112 : StageWebView does not load nor display local HTML content(iOS)

Community Beginner ,
Nov 17, 2017

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

11/16/2017 - Beta - AIR 28.0.0.112

TOPICS
Air beta

Views

2.7K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Air28.0.0.112 : StageWebView does not load nor display local HTML content(iOS)

Community Beginner ,
Nov 17, 2017

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

11/16/2017 - Beta - AIR 28.0.0.112

TOPICS
Air beta

Views

2.7K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 17, 2017 0
Adobe Employee ,
Nov 24, 2017

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 24, 2017 1
Explorer ,
Nov 29, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 29, 2017 0
Adobe Employee ,
Dec 04, 2017

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);

}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 04, 2017 0
Community Beginner ,
Dec 13, 2017

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 13, 2017 1
Explorer ,
Jan 14, 2018

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 14, 2018 0
Adobe Employee ,
Jan 17, 2018

Copy link to clipboard

Copied

Hi,

Thanks for reporting this issue. We are investigating it.

Thanks,

Pravishti | Adobe AIR Engineering

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 17, 2018 0
Explorer ,
Feb 19, 2018

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 19, 2018 0
Adobe Employee ,
Feb 19, 2018

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 19, 2018 0
New Here ,
Apr 10, 2018

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 10, 2018 0
Adobe Employee ,
Apr 11, 2018

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 11, 2018 0
New Here ,
Apr 11, 2018

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 11, 2018 0
Community Beginner ,
Dec 06, 2017

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 06, 2017 1
Explorer ,
Dec 11, 2017

Copy link to clipboard

Copied

I have been having a similar issue too, and I am forced to use Air SDK 25 too !

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 11, 2017 0