Search code examples
here-api

Using here-api map with capacitor


We are using here api for the map on our website and it works nicely. For the first version of a mobile app we are using capacitor to wrap our website and have a mobile app. The problem now is that the host of our mobile app is capacitor://xxx.xxx. Now we get an 401 when trying to load the map inside the mobile app. We have added capacitor://xxx.xxx as a trusted domain. But I guess it only allows http and https. What can we do to prevent this error?


Solution

  • HERE JS API is product that intended to work via online connectivity. Therefore is fully supported https:// protocol scheme.

    http:// and file:// - they are working but with some limitations.

    Unfortunately, any custom protocol like capacitor:// is not supported.