Open street map with Android 8.0

Dear folks,

Greetings!
Iโ€™m recently having trouble to show open street map in my Android app for Android version 8.0 (Oreo). It works perfectly for the older versions. The log shows the following message:

Problem downloading MapTile: HTTP response: Forbidden

Looks like some permission issue. Could anyone please tell me how to solve this problem?
Even the map of OsmAnd app is also rendering very slowly in Oreo.

Thanks in advance!

  1. Not enough info.
  2. Have you seen the Tile Usage Policy?

@Viajero,

I missed to include the user agent. Now itโ€™s working! Thanks a lot for your hint :slight_smile:

Have a nice day :slight_smile:

I have the same problem
agent enabled
org.osmdroid.config.Configuration.getInstance().setUserAgentValue(getPackageName());

Tiles are not loaded on Android 8
while on Android 5 work
used scale 16
while some time ago, and on Android 8, the tiles worked

problems started with cache
tiles are not loaded from the cache
unstable like google maps
they break earlier working programs
and you have the same problem
Is this a policy?
or how?

What actual value does that result in the user agent being set to?

tiles began to open again
it seems that the permissions have not been confirmed