You are not logged in.

#1 2019-03-24 05:32:24

shamimabrishti
Member
Registered: 2019-03-24
Posts: 3

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!

Offline

#2 2019-03-24 09:59:48

Viajero Perdido
Member
Registered: 2016-10-13
Posts: 73

Re: Open street map with Android 8.0

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

Offline

#3 2019-03-25 06:41:01

shamimabrishti
Member
Registered: 2019-03-24
Posts: 3

Re: Open street map with Android 8.0

@Viajero,

I missed to include the user agent. Now it's working! Thanks a lot for your hint smile

Have a nice day smile

Offline

#4 2019-05-16 21:41:28

VjSav
Member
Registered: 2019-05-16
Posts: 3

Re: Open street map with Android 8.0

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?

Offline

#5 2019-05-17 00:51:09

SomeoneElse
Member
Registered: 2010-10-13
Posts: 1,198

Re: Open street map with Android 8.0

VjSav wrote:

agent enabled

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

Offline

#6 2019-05-17 20:20:40

VjSav
Member
Registered: 2019-05-16
Posts: 3

Re: Open street map with Android 8.0

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

Offline

Board footer

Powered by FluxBB