Comments (29)
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.
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.
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.
Thanks a lot I will
from cordova-plugin-zebra-scanner-ios.
@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.
@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.
from cordova-plugin-zebra-scanner-ios.
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.
from cordova-plugin-zebra-scanner-ios.
from cordova-plugin-zebra-scanner-ios.
Which mode are you connecting it in?
from cordova-plugin-zebra-scanner-ios.
from cordova-plugin-zebra-scanner-ios.
trying connecting in Bluetooth MFi_SPP/ Bluetooth MFi_SSI Profile
from cordova-plugin-zebra-scanner-ios.
from cordova-plugin-zebra-scanner-ios.
no as of now.
from cordova-plugin-zebra-scanner-ios.
Do i need to place the SDK somewhere?
from cordova-plugin-zebra-scanner-ios.
No, SDK is already included.
from cordova-plugin-zebra-scanner-ios.
How i can use the XCode how to integrate
from cordova-plugin-zebra-scanner-ios.
Can you please tell me the issue? Did you follow the steps in README.md?
from cordova-plugin-zebra-scanner-ios.
from cordova-plugin-zebra-scanner-ios.
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.
Hi Anand,
Can you try debugging in the console? And see if you can access the window?
from cordova-plugin-zebra-scanner-ios.
from cordova-plugin-zebra-scanner-ios.
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.
Thank you
from cordova-plugin-zebra-scanner-ios.
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.
from cordova-plugin-zebra-scanner-ios.
@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.
from cordova-plugin-zebra-scanner-ios.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-zebra-scanner-ios.