Skip to content

A Cordova plugin that provides interface for native Android and iOS Team Viewer SDK.

License

Notifications You must be signed in to change notification settings

r-kitek/cordova-team-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordovaTeamViewerSDK

A Cordova plugin that provides interface for native Android and iOS Team Viewer SDK.

Installation

To install current plugin run a command from your cordova project folder:

cordova plugin add https://github.com/r-kitek/cordova-team-viewer 

or using npm

cordova plugin add cordova-team-viewer

Usage

If you don't know how to get configurationId and token, refer to before you start section in Team Viewer documentation.

Open session with configuration id:

var token = "your_token";
var configurationId = "your_configuration_id";
var name = "name_for_service_case";
var description = "description_for_service_case"; // optional

TeamViewerSDK.openSessionWithConfigurationId(token, configurationId, name, description,
  function(success) {
  // success block (optional)
}, function(error) {
  // failure block (optional)
});

Open session with session code:

var token = "your_token";
var sessionCode = "session_code";

TeamViewerSDK.openSessionWithSessionCode(token, sessionCode, function() {
  // success block (optional)
}, function(error) {
  // failure block (optional)
});

Closing session

TeamViewerSDK.closeCurrentSession();

Building for iOS

If you see "symbol not found for architecture armv7" during build, then you could add

<preference name="deployment-target" value="7.0" />

to config.xml.

If you're building iOS project in Xcode, you also have to set Targets -> "your_project_name" -> Build Settings -> Enable Bitcode = NO in Xcode project preferences.

License

This plugin is released under MIT License. See LICENSE for details

About

A Cordova plugin that provides interface for native Android and iOS Team Viewer SDK.

Resources

License

Stars

Watchers

Forks

Packages

No packages published