English
English
简体中文
Contact Us
Register
Log In

Travel SDK

Last Updated on : 2023-09-19 03:00:52download

Travel SDK serves as an extension of Smart Life App SDK and promotes your IoT app development for smart travel scenarios.

Preparation

An account is registered on the Tuya IoT Development Platform, and a smart travel product such as an anti-lost tracker, a vehicle locator, or a smart electric vehicle is created. A key is obtained to activate the Travel SDK. For more information, see Fast Integration with Smart Life App SDK for iOS.

Prerequisites

The following environments are required to develop and run the Travel SDK:

  • Xcode 12.0 or later
  • iOS 10.0 or later

Install CocoaPods

You can download the Travel SDK sample for iOS on GitHub.

  1. Follow the instructions in Fast Integration with Smart Life App SDK for iOS and add the TuyaSmartHomeKit dependency to podfile.

  2. In the Podfile, add the dependencies of the Travel SDK.

  3. Run pod install or pod update.

  4. Import the header file #import <TuyaSmartOutdoorKit/TuyaSmartOutdoorKit.h>.

    source 'https://cdn.cocoapods.org/'
    source 'https://github.com/tuya/TuyaPublicSpecs.git'
    
    platform :ios, '10.0'
    inhibit_all_warnings!
    
    target 'MyApp' do
    
    	pod 'TuyaSmartHomeKit'
    	#Dp multilingual
    	pod 'TuyaSmartLangsExtraBizBundle', '~> 3.32.5'
    	#outdoor
    	pod 'TuyaSmartOutdoorKit', '~> 1.0.0'
    
    end
    

Run the demo app

You can get the following samples on GitHub: