Cognex Mobile Barcode SDK Knowledge Base

Getting Started

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.forms/getting-started

...obile App(Xamarin.Forms) , set project name, from templates select Blank and choose Android and iOS platform.Next right click on your Android platform specific project file, then click Properties and go to An...

Introduction

https://cmbdn.cognex.com/v2.7.x/knowledge/cordova-plugin-for-cmbsdk/introduction

...to provide detailed description of the API methods of the Cordova plugin that implements the cmbSDK.Platform TargetsThe plugin on the JavaScript side of things, is implemented as one js file that can be found...

Reference cmbSDK

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.forms/reference-cmbsdk

... and now you want to update the SDK, please first remove reference to XamarinDataManLibrary.dll in platform specific projects and than install the nuget package. Also if you don't have any custom code in Sc...

Installation

https://cmbdn.cognex.com/v2.7.x/knowledge/cordova-plugin-for-cmbsdk/installation

...gin add absolute_path_to_plugin_directory//for example: /Users/superUser/cmb-cordova-master cordova platform add android //cordova platform add ios //if you want to build on iosFor an Ionic solution:#install ...

Licensing the SDK

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.forms/licensing-the-sdk

...ative for information on how to obtain a license key, including 30-day trial licenses.If you obtain cross platform license (one license for both platforms) implement an activation directly from the code when you cr...

Optimizing Mobile Device Performance

https://cmbdn.cognex.com/v2.7.x/knowledge/cognex-mobile-barcode-sdk-for-android/barcode-scanning-with-a-smartphone/optimizing-mobile-device-performance

...mbSDK is initialized for use with the mobile device's built-in camera. platform for barcode decoding. The cmbSDK is optimized for mobile environment, but image analysis and barcod...

Camera Overlay Customization

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.forms/camera-overlay-customization

... cmbSDK overlay:Copy the layout files from the Resources/Android/layout directory into your Android platform specific project and modify them. Use cmb_scanner_partial_view.xml if scanning is started inside a ...

Handling Disconnection

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/xamarin.forms/handling-disconnection

...is used for android only. // For iOS we use Observer that is created in ScannerControl class in iOS platform specific project //---------------------------------------------------------------------------- if ...

setPairedBluetoothDevice

https://cmbdn.cognex.com/v2.7.x/knowledge/flutter/api/setpairedbluetoothdevice

...r it to take effect.platform represent the MAC address, while for iOS input param represent the UUID.For Android:cmb.setPaired...

setPairedBluetoothDevice

https://cmbdn.cognex.com/v2.7.x/knowledge/cordova-plugin-for-cmbsdk/api-methods/setpairedbluetoothdevice

...it to take effect. platform represent the MAC address, while for iOS input param represent the UUID.For Android:(void)setPaired...

Introduction

https://cmbdn.cognex.com/v2.7.x/knowledge/xamarin/introduction

...system, a comprehensive project template library, integrated source control, and many others.Mobile Cross Platform Support – Xamarin offers sophisticated cross-platform support for the three major mobile platform...

Introduction

https://cmbdn.cognex.com/v2.7.x/knowledge/sap-fiori-mobile/introduction

...id mobile apps are web applications wrapped up their own browser which can run on any of the mobile platforms (Android, iOS, Windows etc.). The big advantage of a hybrid app is that it has a single code base,...

Account and Services

https://cmbdn.cognex.com/v2.7.x/knowledge/sap-fiori-mobile/account-and-services

...ices and enable them if they are disabled.    Platform, and activate you account from your mail activation link that you receive.Once you have activated y...

Deploy app to HCP

https://cmbdn.cognex.com/v2.7.x/knowledge/sap-fiori-mobile/deploy-app-to-hcp

...ject we need to prepare for mobile deployment.First we need to deploy our project on SAP HANA Cloud Platform.Right click on project folder then select Deploy and choose Deploy to SAP HANA Cloud PlatformSet ap...

Getting Started

https://cmbdn.cognex.com/v2.7.x/knowledge/app-starters/xamarin-forms-shopping-cart/getting-started

...es (PCL)​ Project​A Portable Class Library (PCL) is a special type of project that can be used across disparate CLI platforms such as Xamarin.iOS and Xamarin.Android, as well as WPF, Universal Windows ......ew -> Project.2. Create Mobile App (Xamarin.Forms).3. Select Blank App template for Android and iOS platform and .NET Standard code sharing strategy.This solution contains three projects:1.Portable Class Libr...

Portable Class Libraries (PCL) Project

https://cmbdn.cognex.com/v2.7.x/knowledge/app-starters/xamarin-forms-shopping-cart/portable-class-libraries-pcl-project

...nal custom properties and event handlers. Later we will implement custom renderer for this class in platform-specific projects.Here we are using ScannerControl in ProductItemPage to add new or edit an existi...

Android Platform-Specific Project

https://cmbdn.cognex.com/v2.7.x/knowledge/app-starters/xamarin-forms-shopping-cart/android-platform-specific-project

...t.LayoutParams.MatchParent)};... platform (min android version, target android version, app name, package name ..), require permissions that ...

iOS Platform-Specific Project

https://cmbdn.cognex.com/v2.7.x/knowledge/app-starters/xamarin-forms-shopping-cart/ios-platform-specific-project

...SetNativeControl(container);... platform (deployment target, app name, bundle identifier ..), require permissions that we need, add assets, ...

Licensing the SDK

https://cmbdn.cognex.com/v2.7.x/knowledge/app-starters/xamarin-forms-shopping-cart/licensing-the-sdk

...obtaining your license key there are two ways to add your license key to an application.For Android Platform open your manifest file and add this meta tag inside the application tag<meta-data android:name=...

Server configuration

https://cmbdn.cognex.com/v2.7.x/knowledge/intouch-machine-edition/server-configuration

...om widgets. Later open index.html and reference these scripts:When we navigate to server URL we add platform that we are using as attribute in query string.With barcodeReader.js we check this attribute to kno...