Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
241 views
in Technique[技术] by (71.8m points)

ios - Inconsistency of didUpdateLocation delegate while spoofer location using iMyFone Any to application

I am working on a ride-sharing application and come across a wired bug. When an application is launched the first-time didUpdateLocation give my current location after calling startUpdatingLocation but when I create a booking and go back to the previous state didUpdateLocation is not called. I tried to debug my application using breakpoint the startUpdartingLocation is called but didUpdateLocation delegate does not work. Other ride-sharing application works fine on spoofer location. Am I missing something?

 private func locationManagerSetup() {
        self.mapView.delegate = self
        self.locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation
        self.locationManager.requestAlwaysAuthorization()
        self.locationManager.activityType = .automotiveNavigation
        self.locationManager.delegate = self
        self.locationManager.startUpdatingLocation()
    }

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...