Android Application Error At Startup

My app is built in NSBASIC AppStudio and uses Voltbuilder

My app runs fine in the browser.

My app runs fine on iOS

On Android 10 I get:

Application Error
The connection to the server was unsuccessful (file:///android_asset/www/index.html)


What is in your ContentSecurityPolicy property in Project Properties?

meta http-equiv=“Content-Security-Policy” content=“default-src ‘self’ gap://ready file://* *; style-src ‘self’ ‘unsafe-inline’; script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’”

With, the CSP handling changed, at least for Run in Desktop and Deploy to Local Folder. Prior to, the CSP was ignored for these deployment methods. That means that there was no meta tag created. Which means, for most browsers, to allow some same domain access. If you have a CSP, it must be specific as to exactly what can access what.

I recommend, to eliminate the CSP aspect of this question, is to remove the CSP property from the Project properties (it’s new location in completely. If you’re adding the CSP manually, then I would eliminate that injection.


Thank you!