I have problems with Voltbuilder for ios and CORS.
I have tested nsb appbuilder project “LeafletMap”. This project has 2 buttons. button1 goes to a map with fixed latitude/longitude and runs well. Button2 uses geolocation and tries to find my location. This works in webbrowser on macos but not as output from Voltbuilder for ios as iphone app.
My own app I am developing gives the message “geolocation error: origin does not have permission to use geolocation service.”.
Following I have done in my project:
Inserted CSP in projects contentProjectSecurity
inserted cordova-plugin-geolocation in config.xml
Allow the app to know your location Allow the app to know your location
<plugin name="cordova-plugin-geolocation"> <variable name="GEOLOCATION_USAGE_DESCRIPTION" value="WhiteScout requires access to your location in order to get position of your ski-area." />
I have all this done without success.
For testing purposes it would be helpful, when you could make test-app “LeafletMap” runable as output from Voltbuilder-ios.