Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. ios - "The geoservices provider is not supported" error
Forum Updated to NodeBB v4.3 + New Features

ios - "The geoservices provider is not supported" error

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 484 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    m2dtkast
    wrote on last edited by m2dtkast
    #1

    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?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      m2dtkast
      wrote on last edited by
      #2

      Simple solution, after a good night of sleep: add

      QT += location
      

      to the ios build (seems not required for the android tho)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved