Skip to main content
Inspiring
Jul 27, 2017 6:46 PM UTC
Question

Protocol Not Supported when Loading from App-storage

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Adobe Employee
Aug 1, 2017 10:24 AM UTC

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

Translate