Browser warning message


#1

I have left browserwarning as the default ‘Please use Google Chrome, Apple Safari or another supported browser.’

Is this expected to work when run on, say, a PC with the app run from Volt? I have tried Edge and Firefox so far, and the message is not displayed. The app just crashes with a SQLite not supported message. AppStudio 7.0.3 and 7.0.4, Windows 10.


#2

That’s the expected behaviour. AppStudio will run on most browsers - but if doesn’t test if all the features your app uses are available on the browser.

You can test whether WebSql is supported by doing this:

if (typeof(openDatabase) === 'undefined') {
  // not supported
}

#3

OK.

So is the browserwarning now redundant? The project explorer help says .‘Message to display to the end user if the browser isn’t compatible. If left blank, the user will not be warned.’


#4

There are browsers which are completely incompatible, like IE6. The message is for these.

Each browser implements different features. AppStudio has no idea which features your app uses, or whether a specific browser has a specific feature.

WebSQL is a good example. It’s present in Google and Safari (as well as mobile devices). The official position of the standards committee is that it is no longer being maintained and support may be dropped in future versions. (The reason is that it is based on a specific implementation, SQLite).

https://caniuse.com/#search=websql

Opponents of the the WebSQL standard (and members of the committee) included Microsoft and Oracle, who have their own SQL products.

In an interesting twist, Microsoft announced yesterday that they will be replacing the guts of Edge with Google’s Chromium, which could result in WebSQL support being added to Edge.

The end result is that if you’re relying on a specific feature which may not be on all browsers, you need to test for it yourself.