Open street map servers aren't really meant to be used in end user applications. They are primarily to support the editing of the map data. Usage like this should be with a provider like Mapbox, or your own supplied tiles.
I've recently found out that this is not quite true - while the primary purpose of their tile servers is mapping and editing applications, they do allow third party apps to use the servers as long as they follow usage policies: https://operations.osmfoundation.org/policies/tiles/