Integration
To add the CarTrawlerSDK to your app, you will need Cocoapods.
Cocoapods
- Include the CarTrawler private spec repository in your podfile: source ‘https://github.com/cartrawler/cartrawler-ios-pods’
- Include the pod in your podfile:
pod 'CarTrawlerSDK'
- From the terminal, run: pod install.
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/cartrawler/cartrawler-ios-pods'
platform :ios, '11.0'
use_frameworks!
inhibit_all_warnings!
target 'CarTrawlerPartner' do
pod 'CarTrawlerSDK', '~> (add latest version here from Release Notes section)'
end
App Permissions
On the SDK’s Search Screen, we have added the option for users to search for vehicles using their current location upon tapping the pick-up location text field.
To make use of this feature, please ensure your plist file has the NSLocationWhenInUseUsageDescription
key.
We will need to use this when asking for permission to use location services within your app if it has not already been granted.