ev-map / EVMap

Android app to find electric vehicle charging stations - compatible with community databases such as GoingElectric.de and OpenChargeMap.org.
https://ev-map.app/
MIT License
204 stars 56 forks source link

Feature request: open "OpenChargeMap-App" instead of browser for editing of station #236

Closed Darulin closed 1 year ago

Darulin commented 2 years ago

I love your app, thanks a lot for putting all the effort into it!

Right now, if I click on edit on a station (provided by OCM), it opens the editing page in the browser. Would it be possible to change that/give the option to directly open the editing window inside the OpenChargeMap-App (if it's installed)?

johan12345 commented 2 years ago

Thank you!

Currently, EVMap links to an URL like https://openchargemap.org/site/poi/details/203697.

~It seems to also be possible to use an URL like https://map.openchargemap.io/#/poi-editor/203697 to get to the OpenChargeMap web-app in the browser. Would that help?~ This doesn't work, it just opens the editing view without loading the actual charger

Opening the actual Android app would require a change on OpenChargeMap's side. Their app already listens to links with the com.webprofusion.openchargemap:// URL scheme, but that only starts the app, it doesn't seem to be possible to pass a link to a specific charger.

johan12345 commented 1 year ago

After a recent change at OCM, it is now possible to build links that open the OCM webapp at a specific charger. With b1fd370, EVMap will now use these links, such as https://map.openchargemap.io/?id=92434, instead of the previous https://openchargemap.org/site/poi/details/92434. This provides a nicer experience on mobile devices.

It would now be up to OCM to make their Android app listen to these links instead of opening them in the browser.