Zverik / every_door

A dedicated app for collecting thousands of POI for OpenStreetMap
https://every-door.app
ISC License
421 stars 36 forks source link

Support intents #633

Open dpriskorn opened 1 year ago

dpriskorn commented 1 year ago

See https://github.com/woheller69/lavatories/issues/16

Ie the app should be able to open an osmid or url shared to it or by an internal url like everydoor://osmid

Zverik commented 1 year ago

Good idea, might be done in conjuction with #387.

lodi-g commented 6 months ago

Hey @Zverik, I think this could be split into two different features:

  1. Support Android Intents/iOS App Extensions, to support sharing of "geo:" links or other kind of URLs (e.g. "share" a osm.org URL to EveryDoor to open the node). It fits well this issue or #387
  2. Support Universal Links (could not find a guide on flutter.dev for good old deep links) to open links such as https://every-door.app/edit/123456 directly in the app on the selected node. It doesn't really fit this issue (even though it's mentioned here) and would be better in it's own issue.

I can try to implement both. However Universal Links (2) requires to upload a file (Apple's AASA / Google's assetlinks) in the web server hosting every-door.app so I would not be able to complete it without someone with access.

If you are interested I will start looking into it, let me know.

Zverik commented 6 months ago

@lodi-g I would love any help with this — but note that the loading process (the entire lib/screens/loading.dart) should commence, otherwise the editor would miss some parts.

The website is managed at https://github.com/Zverik/everydoor-website so feel free to make PRs there. But people have suggested using everydoor://node/123456 and links like that, which won't depend on anything (and I think I've already got an intent for that prefix — but probably defunct). The drawback of using the website is what would be shown if the app is not installed.

lodi-g commented 6 months ago

@Zverik Roger that, custom URL schemes will be good enough. I'll investigate next week and try to come up with a PR.

mnalis commented 4 months ago

@lodi-g Any luck with EveryDoor intents PR?