Check if Google or Huawei Services are enabled
-
Hey there :D
Some time ago I stumbled across some Utility Function in Qt for Android to determine if google oder Huawei Services are available, but I am not able to find those information anymore O_O
Of course I could use a flavour in the Gradle file like mentioned in this so thread (https://stackoverflow.com/questions/59974428/have-both-gms-and-hms-in-the-project/60587678#60587678) but I really think there was a native Qt Function for this... Am I getting crazy or did I just getting worse at finding stuff on the internet? xD
-
You can do this in runtime by using
QAndroidJniObject
(via calling some static methods) and passingQtAndroid::androidActivity()
as context. -
Thanks @IntruderExcluder,
yik that I could implement this manually per JNI calls,
but I really thought that I stumbled across some native C++ functions in Qt for Android burried in the docs, but for some reason I am not able to find the call anymore.Maybe I am really just messing things up in my head :-o