You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After quite a bit of digging, I found out why cordova-plugin-wkwebkit-file-xhr is not correctly loading Mapbox GL JS URLs, even when the following preference is set in config.xml.
After quite a bit of digging, I found out why cordova-plugin-wkwebkit-file-xhr is not correctly loading Mapbox GL JS URLs, even when the following preference is set in config.xml.
The following error is displayed any time I want to get a MapBox URL:
ERROR: {"message":"Bad Request"}
The reason is simple (but hard to find!): URLs are not being correctly escaped!
The fix is even simpler.
Replace line 339 in
platforms/iOS/[Project Name]/Plugins/CDVWKWebViewFileXhr.m
from this:To this:
I haven't bothered to create a pull request, as Oracle have stated they will not accept them. You will have to apply this patch manually.
The text was updated successfully, but these errors were encountered: