Skip to content

_stopUpdatingLocation question #9

@chen0404

Description

@chen0404

Hi Dean,
i have a question about _stopUpdatingLocation, why[ if (!_updateInBackground)] instead of[ if (_updateInBackground)]?
If app be put in the background, it could be in the background mode, suspend mode, even not running mode terminated by user.
In that case if (!_updateInBackground) , locationManager is startUpdatingLocation not startMonitoringSignificantLocationChanges, OS could not updated location when app is not running or in the background
Or OS still update location when locationManager is startUpdatingLocation?

thank you for your replay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions