The goal of this project is to provide a lightweight wrapper around the website. Using Cordova allows the application to use the device persistent storage instead (higher memory limit, no automatic reclaiming of space)...
- Run
make run-browser
- You will need the Cordova installation and android SDK, see
- In Android studio you need to create an emulator (NexusS 22 is known to work)
- CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL="https://services.gradle.org/distributions/gradle-4.4-all.zip" ANDROID_HOME=/home/${USER}/Android/Sdk
npm bin --global
/cordova platform add android - Run
make run-android
- In case of error, open in Android studio and adjust the "project properties" so that the sdk is specified; deploy to emulator or device using Android studio
An APK is available in the gh-pages branch, see https://camptocamp.github.io/luxembourg-cordova/v2018_09_20.apk
- See https://cordova.apache.org/docs/en/latest/guide/platforms/ios/index.html
- Run
make run-ios
- Run
make xcode-open
and click the triangle - On Apple only the authorized devices can install the app.
- issue with running the minified build of the website (unknown reason);
- on simulator: all OK
- on device:
- start without internet was OK with geoadmin inside the iframe;
- iframe <> cordova communication was OK
- on simulator:
- start without internet was OK with geoadmin inside the iframe;
- iframe <> cordova communication was OK
- on device (old iPad on iOS 9):
- start without internet was OK with geoadmin inside the iframe;
- iframe <> cordova communication was tested with a stub (browser too old: don't understand unminified const/let): stored 1GB of data, and read it back
- Mind the upcoming webview changes: https://cordova.apache.org/news/2018/08/01/future-cordova-ios-webview.html