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

scotthsieh0503/cordova-team-viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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/dumont-group/cordovaTeamViewerSDK

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 in Xcode

If you're building iOS project in Xcode, you also have to set deployment target >= 7.0 and 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

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 74.6%
  • Java 20.8%
  • JavaScript 4.6%