1
In QML, I can run an external URL using:
Qt.openUrlExternally(url);
With this, I can, for example, open the Facebook app in a certain profile:
var test = Qt.openUrlExternally('fb://profile/###########');
However, if the Facebook app is not installed the URL will fail, but the function Qt.openUrlExternally()
will continue to return true
. In this case, if I can verify that the call failed I could open Facebook by browser instead of the app.
My question is: how do I check whether a URI Scheme is valid in Qt QML?
Couldn’t find a solution?
– Maniero
@Apparently, the problem was in the implementation of the function
openUrlExternally
. In the latest version of Qt they fixed it (I mean the implementation for Android). However, for some specific cases there is no way to check only with the return of the function. Hence it is better to implement in the native part of the same code.– Lucas Lima
You think you can get an answer even with caveats?
– Maniero
I can do, yes.
– Lucas Lima