ios - "The geoservices provider is not supported" error
-
Hey;
I built Qt statically (5.15.5) for our internal testing against iOS.
It appears qtlocation has been compiled fine;
but when instantiating the object from Qml (the same way works on android:Plugin { id: mapPlugin name: "osm" //More parameters (key etc) }
it does not load the tiles map (from the Map) component which is on the same Qml File and gives an error
"The geoservices provider is not supported".
as well as something like "ignoring org.qt...geoservice ...." which should be coming from this that is in qgeoserviceprovider.cpp...Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, ("org.qt-project.qt.geoservice.serviceproviderfactory/5.0", QLatin1String("/geoservices")))
Does this relate to the fact the plugin is not loaded, as the build is static, hence the geolocation skips initialization?
I had to bind in some other (custom) plugins as well in order to make them discoverable from QML.I have also added
<key>NSLocationAlwaysUsageDescription</key> <string>$(PRODUCT_NAME) location use</string>
as well as
<key>UIRequiredDeviceCapabilities</key> <array> <string>location-services</string> <string>gps</string> </array>
to Info.plist,
It seems weird that maps would not work on iOS...what am I doing wrong? What is the correct way to instance this plugin?