Why is my CLLocationmanager delegate not getting called?

前端 未结 5 1591
梦谈多话
梦谈多话 2020-12-13 07:34

I\'m not getting any location callbacks on either sim or device. I\'ve got this code being called:

- (void)startLocationCallbacks: (NSObject*) ignore
{
  loc         


        
5条回答
  •  爱一瞬间的悲伤
    2020-12-13 07:43

    In my case it was because of my device was unable to determine location - while staying indoors GPS signal was unavailable and wi-fi was also disconnected so location manager just wasn't able to receive any location data and delegate was never called.

    Once I've connected wi-fi it worked (I guess moving outdoors should also do the trick in that case, but sometimes it is not very convenient way :) )

提交回复
热议问题