GithubHelp home page GithubHelp logo

Comments (29)

Shashank2406 avatar Shashank2406 commented on August 18, 2024

Hi @aaronbach ,

You are welcome, it seems Zebra has separate RFID SDK to read RFID-data, so it is not supported as of version 0.0.4 . I will be needing the scanner to work on it, will try to find one. Here is the link of the SDK
https://www.zebra.com/us/en/support-downloads/software/developer-tools/zebra-rfid-sdk-for-ios.html

from cordova-plugin-zebra-scanner-ios.

aaronbach avatar aaronbach commented on August 18, 2024

I understand. I am new to work with cordova Plugins and external SDKs. Do you think it is straight forward, to add this feature? Then I will do it. I have looked through your Source Code. Do you think it is better to create a fork, or try to implement both in your plugin?

Thanks

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

I think it's better to create a fork and then integrate it. It is pretty straight if you have prior knowledge of iOS SDK implementation, rest is bridging that native code to cordova for which you can use my code. Let me know if you require any help.

Cheers!

from cordova-plugin-zebra-scanner-ios.

aaronbach avatar aaronbach commented on August 18, 2024

Thanks a lot I will

from cordova-plugin-zebra-scanner-ios.

tloomis avatar tloomis commented on August 18, 2024

@Shashank2406 I am new to this how do I use your plugin with the SDK in ionic 4? We're using the Zebra RFD8500

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

@tloomis you can install the plugin using the command ionic cordova plugin add cordova-plugin-zebra-scanner-ios, then follow the steps mentioned in the readme. Let me know if you face any issue.
Cheers!

from cordova-plugin-zebra-scanner-ios.

tloomis avatar tloomis commented on August 18, 2024

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

How are you trying to connect the device is the device connected via Bluetooth first? Which device are you using on?

from cordova-plugin-zebra-scanner-ios.

tloomis avatar tloomis commented on August 18, 2024

from cordova-plugin-zebra-scanner-ios.

tloomis avatar tloomis commented on August 18, 2024

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

Which mode are you connecting it in?

from cordova-plugin-zebra-scanner-ios.

tloomis avatar tloomis commented on August 18, 2024

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

trying connecting in Bluetooth MFi_SPP/ Bluetooth MFi_SSI Profile

from cordova-plugin-zebra-scanner-ios.

tloomis avatar tloomis commented on August 18, 2024

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

no as of now.

from cordova-plugin-zebra-scanner-ios.

tloomis avatar tloomis commented on August 18, 2024

Do i need to place the SDK somewhere?

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

No, SDK is already included.

from cordova-plugin-zebra-scanner-ios.

anandsamy81 avatar anandsamy81 commented on August 18, 2024

How i can use the XCode how to integrate

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

Can you please tell me the issue? Did you follow the steps in README.md?

from cordova-plugin-zebra-scanner-ios.

anandsamy81 avatar anandsamy81 commented on August 18, 2024

from cordova-plugin-zebra-scanner-ios.

anandsamy81 avatar anandsamy81 commented on August 18, 2024

Hi Shashank,

I create New Project In Ionic.

$ ionic start rfidtest blank
$ cd rfidtest
$ ionic cordova plugin add cordova-plugin-bluetooth-serial
$ npm install @ionic-native/bluetooth-serial
$ ionic cordova plugin add cordova-plugin-zebra-scanner-ios

Added in the app.module.ts

import { BluetoothSerial } from '@ionic-native/bluetooth-serial/ngx';
...
providers: [
...,
BluetoothSerial
],

In Home.page.ts

import { Component } from '@angular/core';
import { Injectable } from '@angular/core';
import { BluetoothSerial } from '@ionic-native/bluetooth-serial';
import { Platform } from '@ionic/angular';

declare var window: any;

@component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})

@Injectable()
export class HomePage {

scannerName: string = 'RFD8500';

constructor() {
document.addEventListener('zebra.barcodeData',
this.bluetoothDataRead.bind(this), false);

}

CheckDeviceConnected (): void {

alert(this.scannerName);
window.ZebraScanner
   .getAvailableScanners()
   .then((res) => {
      if (res.length) {
         res.filter(item => {
            if (String(item.name).toLowerCase().indexOf(this.scannerName) !== -1) { 
               //this.scannerID = item.scannerID;
               window.ZebraScanner.
                  establishCommunicationSession(item.scannerID)
                  .then(data => {
                     console.log("Device Connected")
                     alert("Connected");
                  }, error => {
                     console.log(error)
                  });
            }
         });
      } else {
         console.log("No Device Found")
         alert("Not Found");
      }
   });
 }

 bluetoothDataRead (event?): void {
  console.log("Read Success",event.detail.barcodeData);

}

}

In home.page.html

I Added this

<button ion-button (click)="CheckDeviceConnected ()">Button

I receive the error

Typeerror: cannot read property
'getavailablescanners' of undefined.

Please help on the issue

Thanks

Anand

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

Hi Anand,
Can you try debugging in the console? And see if you can access the window?

from cordova-plugin-zebra-scanner-ios.

tloomis avatar tloomis commented on August 18, 2024

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

Hi Todd,
I have not tested this plugin with RFD8500. It works well with Zebra CS3070 and CS4070. I will have to check if I can find an RFD8500 device to debug the issue.

from cordova-plugin-zebra-scanner-ios.

tloomis avatar tloomis commented on August 18, 2024

Thank you

from cordova-plugin-zebra-scanner-ios.

tloomis avatar tloomis commented on August 18, 2024

I was just retesting and noticed I am getting this error:

-[mot_LEConnectivityMgr getAvailableScannersList:] Failed to start requested manual discovery

from cordova-plugin-zebra-scanner-ios.

anandsamy81 avatar anandsamy81 commented on August 18, 2024

from cordova-plugin-zebra-scanner-ios.

Shashank2406 avatar Shashank2406 commented on August 18, 2024

@tloomis, @anandsamy81 - I checked and it turns out this package doesn't support RFD devices. Zebra has a separate SDK for RFD devices. I don't own any RFD device, so I won't be able to integrate it into this package.

from cordova-plugin-zebra-scanner-ios.

anandsamy81 avatar anandsamy81 commented on August 18, 2024

from cordova-plugin-zebra-scanner-ios.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.