Skip to content

[Story] Customise maps provider #1722

@Johennes

Description

@Johennes
  • As a maintainer of a fork
  • I want to be able to use my own provider for
    • the map tile server
    • the static map images API
  • so that I can pick the option that works for my budget and privacy concerns

Size estimate

M

Dependencies

Acceptance criteria

  • The app does not value the tile server setting from .well-known because this doesn't cover static maps and will likely require a holistic redesign later
  • Setting the API key or replacing the map provider URLs in forks is easy enough (e.g. dedicated file or interface)
  • There is documentation in the repositories that explains how to replace the API key and URLs in forks
  • The API keys used for Element's apps must not be put in the source code but rather they must be baked into the .apk/.ipa at build time using a GitHub Actions secret
    • For local builds (during development) a dev-only API key must be used in place of the platform-specific ones

Other

  • It looks like we are already using a "provider" mechanism for allowing different push notification providers. In the android code is called "pushproviders" perhaps we could create a similar architecture for maps (e.g. a map providers interface which will have multiple implementations: maptiler... and perhaps others)

Out of scope

  • Nothing

Subtasks

### Android
- [ ] https://github.com/vector-im/element-x-android/pull/886
### iOS
- [ ] https://github.com/vector-im/element-x-ios/pull/1313
- [ ] https://github.com/vector-im/element-x-ios/pull/1364
### Other

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions