• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

Community Beginner ,
Nov 17, 2017 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

3.3K

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
community guidelines
Adobe Employee ,
Nov 24, 2017 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

Votes

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
community guidelines
Explorer ,
Nov 29, 2017 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.

Votes

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
community guidelines
Adobe Employee ,
Dec 04, 2017 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);

}

Votes

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
community guidelines
Community Beginner ,
Dec 13, 2017 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

Votes

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
community guidelines
Explorer ,
Jan 14, 2018 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.

Votes

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
community guidelines
Adobe Employee ,
Jan 17, 2018 Jan 17, 2018

Copy link to clipboard

Copied

Hi,

Thanks for reporting this issue. We are investigating it.

Thanks,

Pravishti | Adobe AIR Engineering

Votes

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
community guidelines
Explorer ,
Feb 19, 2018 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.

Votes

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
community guidelines
Adobe Employee ,
Feb 19, 2018 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

Votes

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
community guidelines
New Here ,
Apr 10, 2018 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

Votes

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
community guidelines
Adobe Employee ,
Apr 11, 2018 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

Votes

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
community guidelines
New Here ,
Apr 11, 2018 Apr 11, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines
Community Beginner ,
Dec 06, 2017 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

Votes

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
community guidelines
Explorer ,
Dec 11, 2017 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 !

Votes

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
community guidelines