Connect SDK is an open source framework that unifies device discovery and connectivity by providing one set of methods that work across multiple television platforms and protocols.
For more information, visit our website.
These steps assume you have a basic working knowledge of development for Android, iOS and Cordova/PhoneGap. For these steps to work, you will need the following:
- Cordova/PhoneGap 2.x or 3.x
- Xcode
- Xcode command line tools
- Android Developer Tools (Eclipse)
- Android's tools & platform-tools folders in your PATH
If you are only developing for one platform, feel free to ignore the steps & requirements for the irrelevant platform.
cordova create sample_app com.example.sample_app SampleApp
cd sample_app
cordova platform add ios
cordova platform add android
cordova plugins add https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin.git#master
Run the following command to create Xcode and Eclipse projects:
cordova prepare
The projects will be located in platforms/ios and platforms/android respectively.
Next, follow the README.md from the Connect SDK iOS and Android source repositories:
# iOS
/path/to/cordova-ios/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name
# Android
/path/to/cordova-android/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name
- Download the files located at https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin
- Copy www/ConnectSDK.js to your project's www/js folder
- Copy the contents of the src folder to your project. For Android, the files should go in src/com/connectsdk/cordova
# add to www/index.html
<script src="js/ConnectSDK.js" type="text/javascript"></script>
# add plugin to www/config.xml
## iOS
<plugins>
<plugin name="ConnectSDK" value="ConnectSDKCordova" />
</plugins>
## Android
<plugins>
<plugin name="ConnectSDK" value="com.connectsdk.cordova.ConnectSDKCordova" />
</plugins>
Next, follow the README.md from the Connect SDK iOS and Android source repositories:
- Twitter @ConnectSDK
- Ask a question with the "tv" tag on Stack Overflow
- General Inquiries [email protected]
- Developer Support [email protected]
- Partnerships [email protected]
- If the plugin doesn't load on iOS, check if the *.m files are in the project's "Compile Sources" list in "Build Phases".
Copyright (c) 2013-2014 LG Electronics.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.