Prerequisites

  • A Vectaury API Key. Create an account on Vectaury for Publisher and create an application.
  • From iOS 10, set "NSLocationAlwaysUsageDescription" and "NSLocationWhenInUseUsageDescription" in the Info.plist file.
  • From iOS 11, set "NSLocationAlwaysAndWhenInUseUsageDescription" and "NSLocationWhenInUseUsageDescription" in the Info.plist file.

Enable Background Mode

You need to tick the box "Location updates" in the "Capabilities" of your target.

background-ios