boldtrn / graphhopper-maps-capacitor Goto Github PK
View Code? Open in Web Editor NEWCapacitor Wrapper for GraphHopper Maps
License: Apache License 2.0
Capacitor Wrapper for GraphHopper Maps
License: Apache License 2.0
Currently I only see the following in the logs:
D/Capacitor: Unable to find a Capacitor plugin to handle permission requestCode, trying Cordova plugins 530222561
GPX export is not working in the app.
Version: 1.0.5
Repo.: F-Droid
Android Version: 13
Lineage OS Version: 20-20230709-NIGHTLY-hotdogb
Versions: 1.4.0 -> 1.5.1
The App does only present a white screen, that's it.
Tried:
no change.
Get GPS updates to announce turn instructions even if the app is in background or if screen is off.
Unfortunately this is currently not possible with a web API, see w3c/ServiceWorker#745 or w3c/geolocation-sensor#22.
And CapacitorJS removed the background task plugin in v4.x and the location plugin "stops location updates when the app goes into background state" - see here.
We could try if the background-runner API works for this but this is available only in v5.x. It seems the background-runner is something different like we need, because they announced that " A Background Tasks Capacitor Plugin is coming soon!" here in March 2023, which seems exactly what we need.
Or we could try this plugin.
When using the version 1.0.1 built by F-Droid, the app fails to start on my android 5.0.2 device.
probably permission missing but also we do not have the host in the app and would have to fill it
Hi, there's one big problem with the app. As an example if I get off the highway on the wrong exit (not the one that app wanted me to) the app doesn't recalculate the path to destination which it should as any other GPS app. Without that it's unusable because you sometimes know city better than the algorithm and take the shortcut or the longer road and it no longer navigates you.
Currently the F-droid deployment does not work and is near impossible to debug. After webpack there is an "Illegal instruction". See also #26.
As a temporary workaround one can install the APK manually. I built it locally using the same build.sh
command.
Updates:
Building a function to select a part of the map to download so you dont need any internet connection to load that part of the map.
This would make the app better for offline ussage.
I am trying to build the project. Initially I ran the build.sh
and saw a couple of errors in the log output. So I took a look into the build.sh
and ran the first commands until I got an error.
npm install
runs fine but npm run build
fails with two issues that may or may not be related to each other:
fiete@ubu:~/Documents/development/graphhopper-maps-capacitor$ npm run build
> [email protected] build
> webpack --config webpack.config.js
assets by status 14.1 KiB [cached] 3 assets
runtime modules 6.75 KiB 9 modules
orphan modules 401 bytes [orphan] 2 modules
cacheable modules 22.1 KiB
./src/app.js + 1 modules 2.14 KiB [built] [code generated]
./node_modules/@capacitor/core/dist/index.js 17 KiB [built] [code generated]
./node_modules/@capacitor-community/text-to-speech/dist/esm/web.js 3.03 KiB [built] [code generated]
ERROR in ./src/app.js 45:11-53
Module not found: Error: Can't resolve '../graphhopper-maps/dist/bundle' in '/home/fiete/Documents/development/graphhopper-maps-capacitor/src'
resolve '../graphhopper-maps/dist/bundle' in '/home/fiete/Documents/development/graphhopper-maps-capacitor/src'
using description file: /home/fiete/Documents/development/graphhopper-maps-capacitor/package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
using description file: /home/fiete/Documents/development/graphhopper-maps-capacitor/package.json (relative path: ./graphhopper-maps/dist/bundle)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/fiete/Documents/development/graphhopper-maps-capacitor/graphhopper-maps/dist/bundle doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/fiete/Documents/development/graphhopper-maps-capacitor/graphhopper-maps/dist/bundle.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/fiete/Documents/development/graphhopper-maps-capacitor/graphhopper-maps/dist/bundle.json doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
/home/fiete/Documents/development/graphhopper-maps-capacitor/graphhopper-maps/dist/bundle.wasm doesn't exist
as directory
/home/fiete/Documents/development/graphhopper-maps-capacitor/graphhopper-maps/dist/bundle doesn't exist
ERROR in Error: Child compilation failed:
Module not found: Error: Can't resolve '/home/fiete/Documents/development/graphhopper-maps-capacitor/graphhopper-maps/src/index.html' in '/home/fiete/Documents/development/graphhopper-maps-capacitor'
ModuleNotFoundError: Module not found: Error: Can't resolve '/home/fiete/Documents/development/graphhopper-maps-capacitor/gra phhopper-maps/src/index.html' in '/home/fiete/Documents/development/graphhopper-maps-capacitor'
at /home/fiete/Documents/development/graphhopper-maps-capacitor/node_modules/webpack/lib/Compilation.js:2011:28
at /home/fiete/Documents/development/graphhopper-maps-capacitor/node_modules/webpack/lib/NormalModuleFactory.js:795:13
at eval (eval at create (/home/fiete/Documents/development/graphhopper-maps-capacitor/node_modules/tapable/lib/HookCodeFa ctory.js:33:10), <anonymous>:10:1)
at /home/fiete/Documents/development/graphhopper-maps-capacitor/node_modules/webpack/lib/NormalModuleFactory.js:275:22
at eval (eval at create (/home/fiete/Documents/development/graphhopper-maps-capacitor/node_modules/tapable/lib/HookCodeFa ctory.js:33:10), <anonymous>:9:1)
at /home/fiete/Documents/development/graphhopper-maps-capacitor/node_modules/webpack/lib/NormalModuleFactory.js:431:22
at /home/fiete/Documents/development/graphhopper-maps-capacitor/node_modules/webpack/lib/NormalModuleFactory.js:128:11
at /home/fiete/Documents/development/graphhopper-maps-capacitor/node_modules/webpack/lib/NormalModuleFactory.js:667:25
at /home/fiete/Documents/development/graphhopper-maps-capacitor/node_modules/webpack/lib/NormalModuleFactory.js:852:8
at /home/fiete/Documents/development/graphhopper-maps-capacitor/node_modules/webpack/lib/NormalModuleFactory.js:972:5
- Compilation.js:2011
[graphhopper-maps-capacitor]/[webpack]/lib/Compilation.js:2011:28
- NormalModuleFactory.js:795
[graphhopper-maps-capacitor]/[webpack]/lib/NormalModuleFactory.js:795:13
- NormalModuleFactory.js:275
[graphhopper-maps-capacitor]/[webpack]/lib/NormalModuleFactory.js:275:22
- NormalModuleFactory.js:431
[graphhopper-maps-capacitor]/[webpack]/lib/NormalModuleFactory.js:431:22
- NormalModuleFactory.js:128
[graphhopper-maps-capacitor]/[webpack]/lib/NormalModuleFactory.js:128:11
- NormalModuleFactory.js:667
[graphhopper-maps-capacitor]/[webpack]/lib/NormalModuleFactory.js:667:25
- NormalModuleFactory.js:852
[graphhopper-maps-capacitor]/[webpack]/lib/NormalModuleFactory.js:852:8
- NormalModuleFactory.js:972
[graphhopper-maps-capacitor]/[webpack]/lib/NormalModuleFactory.js:972:5
- child-compiler.js:169
[graphhopper-maps-capacitor]/[html-webpack-plugin]/lib/child-compiler.js:169:18
- Compiler.js:559
[graphhopper-maps-capacitor]/[webpack]/lib/Compiler.js:559:11
- Compiler.js:1129
[graphhopper-maps-capacitor]/[webpack]/lib/Compiler.js:1129:17
- Hook.js:18 Hook.CALL_ASYNC_DELEGATE [as _callAsync]
[graphhopper-maps-capacitor]/[tapable]/lib/Hook.js:18:14
- Compiler.js:1125
[graphhopper-maps-capacitor]/[webpack]/lib/Compiler.js:1125:33
- Compilation.js:2782 finalCallback
[graphhopper-maps-capacitor]/[webpack]/lib/Compilation.js:2782:11
- Compilation.js:3087
[graphhopper-maps-capacitor]/[webpack]/lib/Compilation.js:3087:11
- Hook.js:18 Hook.CALL_ASYNC_DELEGATE [as _callAsync]
[graphhopper-maps-capacitor]/[tapable]/lib/Hook.js:18:14
1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack 5.65.0 compiled with 3 errors in 609 ms
There is the Field 'browser' doesn't contain a valid alias configuration
error where I did not find an obvious solution for (maybe check this SO thread) and a possible followup error that the index.html
cannot be found.
https://gitlab.com/linsui/fdroiddata/-/jobs/7165447286 Could you please take a look? Thanks!
Hi!
I recently started de-googleing my Mobile, and found this App, and i have to say: i am quite amazed!
There are a few usability-issues, however, my biggest problem right now is: the app does not request location information.
I click the button, nothing happens.
After some time a window pops up, saying that a GPS-Timeout has occured.
GPS itself is working fine, i verified that with the App "GPS-Cockpit".
When using GPS-Cockpit, the Location-icon appears besides the clock.
When using Graphhopper, it doesn't.
The permission is set correctly, (the app requests "Location"), and i tried reinstalling multiple times.
I am using a Sony Z5C on LineageOS 18.1, The Open GApps package is installed, in the minimalist configuration. (yet. will remove in the future :-) )
If you have any tips or ideas, i would be most grateful!
Thank you :-)
I've tried a quick fix ( https://gitlab.com/fdroid/fdroiddata/-/commit/4ca2e30af20e173862ce4d24e0dee449834f37cc ) but more changes are needed: https://gitlab.com/fdroid/fdroiddata/-/jobs/3761808665#L368
/LE: https://gitlab.com/fdroid/fdroiddata/-/commit/4ca2e30af20e173862ce4d24e0dee449834f37cc
hey,
i dont know if this issues is cause of the app or cause of my device,
when i start the app i have a red banner tel me "could not connect to the service", but yesterday the app work just fine
I don't remember changing anything, so do you have an idea ?
thanks.
Update: after installing the demo app from the store i could notice both app work now, very strange because the only thing i just do is download and start the demo app
if my story help to improve this app, that make me very happy.
PS: im only pixel 6 with calyx os (and of course microG and localisation is activate)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.