In QML, I can run an external URL using:
Qt.openUrlExternally(url);
With this, I can, for example, have the Facebook app open in a certain profile:
var test = Qt.openUrlExternally('fb://profile/###########');
However, if the Facebook app is not installed the URL will fail, but the Qt.openUrlExternally()
function will continue to return true
. In that case, if I can verify that the call has failed, I could open Facebook via the browser instead of the app.
My question is: how do I check if a URI scheme is valid in Qt \ QML?