Location

Handles requests related to location via IMS web services. This service fetches the last known location for the host application's user.

Required information

*Identity: In order to fetch user location, the application must have a valid user (represented by the Identity).

Concrete example

To fetch a user's last known location one can use following snippet

let service = LocationService(identity: identity)
service.fetchLastKnownLocation(then: { result in
    guard !result.value.isEmpty else {
        // error
        return
    }
    completionHandler(.success(result.value))
})

Last updated