On Android M devices the first time you run the app with native Google Maps 
it is black (with a google logo, with no map content) the next time the app 
is run then it is Ok.

This happens even if the location permission box is loaded a number of 
forms before any form that uses the map - it looks like on initialising an 
app with the Google Maps in it runs something that throws a permission 
error and the map doesn't get initialised or managed correctly.

I put a dummy getLastKnownLocation on the postShow of the splash screen in 
order to request location as soon as possible and it shows, then user logs 
in / registers and then lands on a map page and the map is black, next time 
the app is run then it functions correctly. This affects Android M devices 
with the SDK set to 23. Lowering the SDK isn't possible anymore (an update 
has already gone to Google Play).


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/69e71c0d-187e-4e87-9b7f-6e825c766528%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to