ttatarinov / lineapro-phonegap-plugin Goto Github PK
View Code? Open in Web Editor NEWLineaPro Phonegap Plugin
License: MIT License
LineaPro Phonegap Plugin
License: MIT License
Xcode throws up the following errors when I attempt to build and deploy on a 64bit device.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_DTDevices", referenced from:
objc-class-ref in LineaProCDV.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
(Many thanks for the plugin)
So I am trying to use the plugin but when I hit the button on the side that activates the scanner, nothing happens. So I need to write some JS for onclick of that button? Thanks
Good looking plugin that I'm wanting to try but where do I add the code from the README? It seems that the plist
file gets overridden every time.
!!! You must add section "SupportedExternalAccessoryProtocols" into "[Project Name].plist" file. This section should include the following items:
com.datecs.linea.pro.msr
com.datecs.iserial.communication
com.datecs.pinpad
com.datecs.linea.pro.bar
Would it be possible to update this plugin to support Cordova iOS 4+ and wkWebView?
Based on the sample download, letting people know to plug this into index.js should help solve some issues for folks: https://gist.github.com/johnvilsack/44cb8f6fd9328e327ff9
Great work on the plugin! I just had one question about accessing the scanner when plugged in via USB that I'm sure you've run into.
The scanner does not initialize when plugged in. It seems there is an option called "Pass Through Sync":
Pass Through Sync: Pass through sync allows you to connect to iTunes with the Linea attached. Disable this if you need to be able to connect to power and use the device at the same time. (Lighting Connector Devices Only)
http://support.swipetrack.com/hc/en-us/articles/201119480-SwipeTrack-Application-Device-Settings
Wondering if there is a way to set this in Cordova? I see that there are methods in DTDevices.h
for them, but I am not familiar with Objective-C, or how to enable them/toggle the options. :)
/**
Returns the current state of the pass-through synchronization.
@param enabled returns if the sync is enabled or disabled
@param error pointer to NSError object, where error information is stored in case function fails. You can pass nil if you don't want that information
@return TRUE if function succeeded, FALSE otherwise
*/
-(BOOL)getPassThroughSync:(BOOL *)enabled error:(NSError **)error;
/**
Enables or disables pass-through synchronization when you plug usb cable. In lightning connector devices this is important, as you can no longer have both sync and communication at the same time.
Disable the sync for stationary, always on charge systems. Sync mode is persistent, but there is no downside of setting the desired one upon connection.
@param enabled TRUE to enable pass-through sync, FALSE to disable it
@param error pointer to NSError object, where error information is stored in case function fails. You can pass nil if you don't want that information
@return TRUE if function succeeded, FALSE otherwise
*/
-(BOOL)setPassThroughSync:(BOOL)enabled error:(NSError **)error;
Can you make this plugin available on phonegap build? It is a straight forward process to submit it.
https://github.com/apache/cordova-plugman/blob/master/README.md
I would like to know is there a way to start and stop lightning connector scan manually?
LineaProCDV.initDT()
method uses to start the scan. Once started its scanning throughout the app. Is there a way to stop scan? So that it'll be useful to stop the scan manually in pages where i don't need to scan. Other than that its working perfectly.
I start the app fresh and scan a few barcodes, working as expected. I then switch to the browser to lookup a url. Once I switch back the app and continue to scan (I have to click the scan button to reconnect), I only get first part of the barcode. I need to either restart the scanner or completely close the app and reopen it.
Is there any additions that should be added to ensure the scanner reconnects?
We are using iPhone 6 with Linea Pro 7 and Infinite Peripherals case. It stopped working because of SDK in the app outdated.
Hello, first of all - awesome plugin. Works pretty nicely for what we need it for.
I am noticing a problem though - whenever we leave the LineaPro app running for an extended period of time (24+ hours) - the barcode scanner and/or the magstripe reader loses it's connection to the app.
We can swipe or press the button to scan a barcode - but nothing happens. IE: the laser does not come on.
To fix it, we have to reload the app (kill the current app and launch it again).
Is this a known limitation at all? Something you've experienced in the past?
Thanks,
Tim
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.