objective c - Google map sdk for IOS 8 does not update location -


i'm running on ios8 simulator , counter problem:
gmsmapview able load map didn't ask location's permission, not update current user's location. (i did set custom location, using gpx file)

however, gmsmapview still works fine on ios 7.1, 7.0 ...
code simple, init mapview, add controller's view , using kvo mylocation observer location's change.

what should ?

google maps sdk v1.8.1 doesn't request location authorization needed in ios8, need in application.

use cllocationmanager's requestwheninuseauthorization method, , in authorization changed delegate, enable location updates in map view when authorization can given.

also, don't forget add correct keys in info.plist explain users why need location, without call requestwheninuseauthorization don't anything.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -