Skip to main content
Inspiring
July 27, 2017
Question

Protocol Not Supported when Loading from App-storage

  • July 27, 2017
  • 1 reply
  • 563 views

Hopefully someone can help me out.

I've built an AIR mobile application for iOS that currently saves an HTML file (with images) to the application storage directory.  Afterwards it loads the html file using stagewebview.  It works perfectly with AIR 21.  When I upgraded to AIR 26, it now throws an error.

"Error #2044: Unhandled ErrorEvent:. text=The protocol is not supported.: app-storage:/profile_3_85_551.html"

After doing some debugging I see that it's saving to the application storage directory but throws the error when trying to load.

Any help would be greatly appreciated.

Thank you in advance.

This topic has been closed for replies.

1 reply

Adobe Employee
August 1, 2017

Hi,

We have tried reproducing the issue with AIR 26 but Issue is not reproducible at our end. Please make sure that URL can use the following URI schemes only http:, https:, file:, data:, and javascript. Moreover to load a file from application storage directory or local directory following lines of code can be used:

var fPath:String = new File(new File("app:/html/index.htm").nativePath).url;

webView.loadURL( fPath );

Please give this a try, if you still face the same issue, Please share a sample project or provide us more info.

Regards,

Adobe AIR Team