Software Development Kit for ios and Android

Similar documents
RED IM Integration with Bomgar Privileged Access

Remote Support Web Rep Console

Bomgar Connect Support Apple ios Devices

Privileged Access Management Android Access Console 2.2.2

Supporting Apple ios Devices

Supporting Android Devices

Bomgar Privileged Access Smart Cards

Privileged Access Middleware Engine Installation and Configuration

Salesforce Integration Use Case

Bomgar Connect Android Rep Console 2.2.6

Bomgar Connect Android Rep Console 2.2.9

Smart Cards for Remote Authentication 3. Prerequisites 3. Install the Smart Card Driver 4

JIRA Integration Guide

Security Provider Integration SAML Single Sign-On

Microsoft Dynamics CRM Integration with Bomgar Remote Support

Bomgar PA Integration with ServiceNow

IBM Case Manager Mobile Version SDK for ios Developers' Guide IBM SC

Security Provider Integration SAML Single Sign-On

Real-Time Dashboard Integration Bomgar Remote Support

Integrate HEAT Software with Bomgar Remote Support

Security Provider Integration Kerberos Server

Security Provider Integration RADIUS Server

Security in Bomgar Remote Support

Bomgar Connect ios Rep Console 2.2.7

Tutorial on OpenCV for Android Setup

Supporting ios Devices

Privileged Identity App Launcher and Session Recording

Supporting Android Devices

Tutorial on OpenCV for Android Setup

How to Use Session Policies

Microsoft Dynamics CRM Integration with Remote Support

Android Rep Console

Bomgar Remote Support Integration with BMC Remedy

Bomgar Remote Support Representative Guide 16.1

Bomgar SIEM Tool Plugin Installation and Administration

Bomgar Remote Support 18.1 Features Compatibility

How to Customize Support Portals

ipass SmartConnect Getting Started Guide for Android Version MARCH 2017

Two-Factor Authentication Guide Bomgar Remote Support

Remote Support Jump Client Guide: Unattended Access to Systems in Any Network 3. Recommended Steps for Implementing Bomgar Jump Technology 4

Privileged Access Integration Client Guide

Building graphic-rich and better performing native applications. Pro. Android C++ with the NDK. Onur Cinar

Remote Support 19.1 Web Rep Console

Remote Support Jumpoint Guide: Unattended Access to Computers in a Network 4. Recommended Steps to Implement Bomgar Jump Technology 5

Bomgar Vault Server Installation Guide

Bomgar Remote Support 18.2 Features Compatibility

ANDROID APPS (NOW WITH JELLY BEANS!) Jordan Jozwiak November 11, 2012

BMC Remedy Integration with Remote Support

Mobile Application Development

Bomgar Remote Support Representative Guide 17.1

HEAT Software Integration with Remote Support

Choose OS and click on it

Integration Client Guide

BOMGAR.COM BOMGAR VS. TEAMVIEWER UPDATED: 2/28/2017

Bomgar Remote Support Representative Guide 18.2

Manual Android Virtual Device Failed To Load Click Details

Privileged Access Access Console User Guide 17.1

USER GUIDE FOR SMARTPHONE BASED REAL-TIME ACOUSTIC FEEDBACK CANCELLATION SYSTEM

The package of Foxit MobilePDF SDK for ios includes the following files:

XenMobile Logs Collection Guide

SAP Roambi SAP Roambi Cloud SAP BusinessObjects Enterprise Plugin Guide

02/03/15. Compile, execute, debugging THE ECLIPSE PLATFORM. Blanks'distribu.on' Ques+ons'with'no'answer' 10" 9" 8" No."of"students"vs."no.

Failover Configuration Bomgar Privileged Access

IBM Datacap Mobile SDK Developer s Guide

CA Service Desk Integration with Remote Support

Login with Amazon. Getting Started Guide for ios apps

FX SERIES. Programmer s Guide. Embedded SDK. MN000540A01 Rev. A

Tutorial on Basic Android Setup

Privileged Access Access Console User Guide 18.1

MarkLogic Server. Information Studio Developer s Guide. MarkLogic 8 February, Copyright 2015 MarkLogic Corporation. All rights reserved.

Bomgar Appliance Upgrade Guide

Google Maps Troubleshooting

Getting Started with the Ed-Fi ODS and Ed-Fi ODS API

Click Studios. Passwordstate. Remote Session Launcher. Installation Instructions

Link-OS SDK for Xamarin README

Corona SDK Getting Started Guide

Security in the Privileged Remote Access Appliance

Privileged Access Management User Guide 15.3

Connect and Transform Your Digital Business with IBM

form layout - we will demonstrate how to add your own custom form extensions in to form layout

Bomgar Cloud Support Admin 18.2

Bomgar Remote Support Administrative Guide 16.2

Bomgar Cloud Support Admin 15.2

Configuring Failover

Administrative Guide Standard Licensing

Privileged Access Management User Guide 15.1

iphone Development Setup Instructions Nikhil Yadav Pervasive Health Fall 2011

BlackBerry Developer Global Tour. Android. Table of Contents

JUCE TUTORIALS. INTRO methodology how to create a GUI APP and how to create a Plugin.

Security Provider Integration LDAP Server

WFCE - Build and deployment. WFCE - Deployment to Installed Polarion. WFCE - Execution from Workspace. WFCE - Configuration.

TEMPO INSTALLATION I O A. Platform Independent Notes 1. Installing Tempo 3. Installing Tools for the Plugins 5. v0.2.

Privileged Access Access Console User Guide 18.2

Programming Concepts and Skills. Creating an Android Project

Bomgar Support 15.1 Evaluation Comparison

CSCI 201 Lab 1 Environment Setup

Install R and QlikView Advanced Analytics Integration Demos

Homework 9: Stock Search Android App with Facebook Post A Mobile Phone Exercise

After you create a new project you should be able to access the below windows:

1.1 PDFium Foxit PDF SDK PDFium version of Foxit PDF SDK Features Evaluation...

Transcription:

Software Development Kit for ios and Android With Bomgar's software development kit for mobile devices, a developer can integrate your mobile app with Bomgar to provide faster support for your app. The Bomgar mobile SDK is a library which, when included in your application, enables remote access and troubleshooting of your app. To obtain the mobile SDK package, contact your account manager or submit a request to Sales at www.bomgar.com/contact. The Bomgar mobile SDKs support Android 4.0 + and ios 8.2+. Once you have embedded the Bomgar SDK into your app, your app can integrate with the Bomgar Appliance, allowing you to support your app in-depth. Your application can leverage each of these features through the APIs offered by the SDK. In-App Session Start Start a session from within the app using a session key or an issue code name. Chat Chat with your remote customer without leaving your app. Application Screen Sharing View your app on the remote device. Custom Special Actions Send custom commands to your app to speed your support processes. Using the SDK, connect a special action to any operation your app can perform, such as activating debug mode in the app, switching to a setting screen, extracting a log file, changing a general setting, clearing a local cache, and so forth. File Transfer Transfer files to and from the remote device. Access the app's sandbox.* Custom System Info Get custom information about your app (version, last sync time, memory footprint, etc.) and the remote device (GPS location, battery strength, etc.). Any information the app can access can be sent to the representative console as system information.* *The available functionality depends on the permissions of the app. File transfer to the device's internal storage on Android requires that the app have permission to access it. Additionally, if, for example, sending GPS information back from either platform via custom system information, the app must have permission to access the GPS so it can provide the information to the Bomgar SDK. Any data generated in or available to the app can be sent via custom system information. CONTACT BOMGAR info@bomgar.com 866.205.3650 (US) +44 (0) 1628 480 210 (UK/EMEA) BOMGAR.COM 1

a SOFTWARE DEVELOPMENT KIT FOR IOS AND ANDROID Getting Started with the ios SDK The BomgarSession framework provides an API, allowing you to connect to a Bomgar Appliance and start a support session inside any native ios application. You can start a session using either a session key entered by the user or using a predefined issue code name created by one of your Bomgar Appliance's administrators. Note: Previous versions of the BomgarSession framework required an embedded framework called ThinProtocolEmbedded.framework. This is not longer required. If you previously included a reference to this framework per the instructions in a previous version, you can delete it. The best way to integrate the SDK into your application depends on your development needs, mainly on whether or not you need to use the simulator. This is due in part to the fact that Apple does not allow an app to be submitted to the app store if the app contains a framework that includes code for the x86_64 architecture, and this architecture is required to run code in the ios simulator. The following sections walk you through integrating the Bomgar SDK into your project for development either using only physical devices or using both physical devices and the simulator. IMPORTANT The configuration for supporting only physical devices is much simpler to use. If you do not need to support development in the simulator, Bomgar highly recommends supporting only physical devices. Development for Physical Devices 1. When you expand the archive that contains BomgarSession.framework, locate the BomgarSession folder, which contains two sub folders, Debug and Device. Each folder contains a separate build of BomgarSession.framework. Since you will need to configure only the project for running physical devices, focus on the build in the Device folder. Drag the BomgarSession.framework file from the Device folder into your Xcode project. 2. In the project navigator, go to Your Project > Your Target > Build Phases. 3. If not already there, add a Copy Files step at the end. CONTACT BOMGAR info@bomgar.com 866.205.3650 (US) +44 (0) 1628 480 210 (UK/EMEA) BOMGAR.COM 2

a SOFTWARE DEVELOPMENT KIT FOR IOS AND ANDROID 4. Set the destination to Frameworks and drag BomgarSession.framework from the project navigator into the file list. You should see something similar to the screenshot. 5. Alternatively, you can drag BomgarSession.framework to the General > Embedded Binaries. Xcode should link the framework and add a copy files task to your Build Phases. If you use this method, under Build Phases, you should still have a similar configuration for your target. 6. When building your app, if your project does not contain any Swift code, you must tell Xcode to include the Swift libraries. To do this, click on Build Settings for your target. Note: If your project contains Swift code, you can skip step 7. 7. Under Build Options, you should see a key called Always Embed Swift Standard Libraries. To narrow the list, search for Always Embed. 8. Set this value to Yes. You are now ready to import BomgarSession and to connect your app to your appliance. Development for Both Physical Devices and Simulators Summary of process When building against a physical device or when creating a release, link against the Device/BomgarSession.framework. When building for the simulator, link against Debug/BomgarSession.framework. This is accomplished by using an xcconfig file and a CONTACT BOMGAR info@bomgar.com 866.205.3650 (US) +44 (0) 1628 480 210 (UK/EMEA) BOMGAR.COM 3

custom build script to embed and sign the framework. The following instructions assume you do not currently have any xcconfig files assigned to your configurations. If you are already using xcconfig files, simply copy the settings from the resource file into your configuration or enter #include "BomgarSession.xcconfig" at the top of your config file. If this configuration style does not work for you, there are other options you can use. For example, you can create separate targets for the simulator and device builds and link the correct framework version to each target, following the steps in the previous section. Note: The demo apps, provided in the SDK Demo bundle, use this configuration. You can view those projects for reference. 1. When you expand the archive that contains BomgarSession.framework, locate the BomgarSession folder, which contains two sub folders, Debug and Device. Each of these folders contains a separate build of BomgarSession.framework, and both builds are needed. Drag the BomgarSession folder into the same folder as your Xcode project. Note: The configuration files being used are written with the assumption that this folder structure is in this specific location. 2. There is a ConfigurationResources archive that contains two files. You need two of them for this configuration, BomgarSession.xcconfig and copy_bomgarsession.sh. Copy these two files into your app s project structure. Note: Although it is not strictly required, these instructions assume the files were copied into the same directory as your Xcode project. 3. Drag BomgarSession.xcconfig into your Xcode project. The folder structure should look similar to the screenshot. CONTACT BOMGAR info@bomgar.com 866.205.3650 (US) +44 (0) 1628 480 210 (UK/EMEA) BOMGAR.COM 4

4. Your Xcode project structure should look similar to the screenshot. 5. Now you must tell Xcode about the xcconfig file just added to the project. In the Project Navigator, go to Your Project > Your Project > Info. 6. Under Configurations, expand the Debug section, and you should see your project with all of its targets nested below it. 7. On the right, click the dropdown for the project itself and select BomgarSession from the list. 8. Repeat this same process for the Release configuration. Your project should look similar to the screenshot. 9. In the Project Navigator, go to Your Project > Your Target > Build Phases. 10. At the end of the list, add a Run Script phase. 11. The Shell field should default to /bin/sh. In this script box, place the path to the copy_bomgarsession.sh script as the only line. 12. Since the script was placed in our directory, you should see the script box contain "${PROJECT_DIR}/copy_ bomgarsession.sh". Your build phases should look similar the following. Note: The build phase is renamed to Embed BomgarSession for clarity. You are now ready to import BomgarSession and to connect your app to your appliance. CONTACT BOMGAR info@bomgar.com 866.205.3650 (US) +44 (0) 1628 480 210 (UK/EMEA) BOMGAR.COM 5

Other Customization Options In addition to the assets used to configure your project, the ConfigurationResources bundle also contains a Localized.strings file. This file contains all of the user-facing strings used by the SDK. If you need to localize your app into a language other than English, you can include this file as a resource in your app and localize it in Xcode, as needed. Troubleshoot the ios SDK Implementation If you were using a previous version of BomgarSession, you may have imported <BomgarSession/SystemInfo.h> into your project. This is no longer needed and must be removed to compile the current version of BomgarSession. If you see an @rpath error when launching your app on a device, make sure the runtime search paths include @executable_path/frameworks. Here is a screenshot of the error as well as the proper values in the Build Settings. If you see memory errors coming from the framework itself (i.e. EXC_BAD_ACCESS), make sure arm64 is in your Valid Architectures list. Install Documentation from Docset Archive File To read through more documentation about the ios SDK, follow these steps. 1. Extract the archive. 2. Drag the.docset file to ~/Library/Developer/Shared/Documentation/DocSets/. 3. Restart Xcode. 4. The Bomgar docset should now show up in Xcode Organizer's Documentation tab. CONTACT BOMGAR info@bomgar.com 866.205.3650 (US) +44 (0) 1628 480 210 (UK/EMEA) BOMGAR.COM 6

Getting Started with the Android SDK Note: The Bomgar SDK uses an Android API level of 15 and newer. 1. To import the Bomgar SDK, add libs/bomgarsdk.jar to your project as a library. Note: The SDK jar contains compiled native libraries for armeabi-v7a, arm64-v8a, mips, x86, and x86_64 architectures. This also includes the jar in a project, which builds its own native libraries. Unless the libraries are manually loaded, the use of other architectures may cause problems. 2. The SDK also uses the Renderscript Support Library. Projects including the jar need to add the following: "renderscriptsupportmodeenabled true" in build.gradle for gradle builds (Android Studio) "renderscript.support.mode=true" in project.properties for ant builds (Eclipse plugin) 3. Within the app code, embed your companyid. To obtain this value, navigate to /login > Status > Information and review the Company API Name field, or issue the get_api_info command. Please see API Command: get_api_info at www.bomgar.com/docs/remote-support/how-to/integrations/api/command/get_api_info-request. 4. There are three steps for connecting to the Bomgar Appliance through the Android SDK. a. Create an instance of BomgarSession using the factory method BomgarSessionSingleton (Application, String, String, int, BomgarSessionDelegate). b. Start a session using one of the session start methods found in BomgarSession. c. Manage the running session activity using BomgarSession.setRunningActivity (Activity). Required Permissions In order for the Bomgar SDK to fully function, the host application must be granted certain permissions. Depending on the target api level of your application, the process differs due to the introduction of Runtime Permissions in Android 6.0. See the notes at the end of this section for information relevant to the SDK and runtime permissions. Regardless of API level, the following permissions must be added to the manifest file in order for the SDK to provide full functionality. android.permission.internet android.permission.access_network_state android.permission.kill_background_processes android.permission.read_profile android.permission.read_phone_state android.permission.read_contacts android.permissions.get_accounts android.permissions.write_external_storage android.permissions.read_external_storage CONTACT BOMGAR info@bomgar.com 866.205.3650 (US) +44 (0) 1628 480 210 (UK/EMEA) BOMGAR.COM 7

If your application uses system privileged screen scraping, input injection, and process list collection, the following permissions are required. Note: The APK must be signed with the device firmware's signature to grant these permissions. android.permission.access_surface_flinger android.permission.read_frame_buffer android.permission.inject EVENTS android.permission.real_get_tasks android.permissions.clear_app_user_data To use Bomgar InSight, the following permission must be placed in the application manifest along with the uses-feature entry. Note: The uses-feature entry is a requirement only if the application can be used without the presence of a hardware camera. android.permission.camera <uses-feature android:name="android.hardware.camera.entry.any" android:required="false" /> If your application targets API level 23 or higher, it must account for the new Runtime Permissions. A system prompt appears asking the user to allow each permission group. There are four permission groups that encompass the required permissions. The groups should be requested (and ideally allowed) before the Bomgar sessions are started in order for the sessions to collect necessary system information and provide full functionality. The four groups are listed below and can also be inferred from the required permissions list. PHONE CONTACTS STORAGE CAMERA If Proguard is being used on the application, the following Proguard rules must be used to preserve necessary parts of the SDK from obfuscation. -keep class com.bomgar.android. ** {*; } -dontwarn com.bomgar.android.** Review Documentation and Sample Project For more information about the SDK, please see docs > index.html in the SDK bundle. For a working example of the Android SDK, please reference the Android Paint project provided with the SDK binary. CONTACT BOMGAR info@bomgar.com 866.205.3650 (US) +44 (0) 1628 480 210 (UK/EMEA) BOMGAR.COM 8