How to receive a text stream in flutter - flutter

I have a barcode scanner which automatically outputs the barcode into whichever app you have open in the USB attached windows PC, if it can handle it. For example if I have chrome open, I click the address bar and then scan it outputs to there. Similarly if I click on a website textarea and then scan it'll dump it in there.
I have a simple flutter application which I simply want to detect the scan receival. I don't care how, but I don't even know what exactly to search for to get my answer. My aim is to have a windows app in flutter, which when I scan a barcode it receives this, displays the product details in the flutter screen (aka needs an API call straight after getting the scan). Any help on even what topic to search for will help, cheers.
Barcode scanner: Symcode MJ-340 Automatic Desktop USB Wired Barcode Scanner.

After a lot of trial and error I worked out that a common way to interact for barcodes through USB to apps is via the USB HID aka keyboard presses. By wrapping the app around a RawkeyboardListener with autofocus true, you can filter via RawKeyUpEvent (or down) and then simply set the state.
In my case, it always ended with an enter key to detect the end of a code.

Related

How to send and receive custom data with Phone through Bluetooth between close devices using Flutter dart?

The interaction should be automatic:
if a device enters in another device's area (or, if it is not possibile, they are in the same "region"), they send and receive a custom object (made of strings and ints).
So, there is no manual scanning or sending.
I looked at many libraries, but it seems impossibile to send custom data via Bluetooth and be in costant listening.
Please help. Thanks in advance!
Edit 1: So, I realized it exists a way of broadcast sending and monitoring with two separate libraries. Now, I have to understand how to make my custom UUID. Maybe I could scan only for those who have the same layout or something (AltBeacons are new to me).

How to navigate through ionic app depending on data recieved from arduino via bluetooth

I am trying to communicate between arduino blutooth HC-05 and ionic app.
I have succesfully connected the app to blutooth device and I am able to to read the data from the arduino and everything is fine.However, when I send data from arduino to the application it stores the data in a buffer and wait for someone to click a button in the app and read the data.
How can I read the data from the buffer contiuosly without the need to click any button in ionic and depeding on that value it keep navigating through the app?
Here is the code of the select device page where the user choose which device to control. Example: when arduino send '1' to ionic, it should enter the light page, and if it recieve '2',it should enter Ac box and so on.
This code works,but I must click the button to read data from buffer and then navigate to different pages.
How can I keep checking if data in buffer continuously untill I read either 1,2,3,or 4 without the need to click any button.
Attached are the codes
HTML FILE
TypeScript file

Scan barcode from Iphone Keyboard

I am using an online based inventory tracking system called Tracmor. I'm wondering if there's an app for Iphone or some feature that allows you to scan barcodes from your iphone keyboard. The way I am able to input data inventory data into tracmor is by selecting the field in the Tracmor online portal, which pulls up the iphone keyboard. Ideally, I would like to scan the bar code from this point for the field. I know this is possible for android, but I have not found the solution for iphone. I am currently using an Iphone6.
Thank you,
Maya
I am using BarcodeKey from the app store - it works like a keyboard. it seems to work well for our use - scanning barcode data into a web form/field.
My name is Noah and I am a support engineer with Tracmor.
I wanted to let you know that there is an iPhone app that will support scanning barcodes into Tracmor.
Please see the app called "Barcode Scan to Web" By Berry Wing LLC in the iTunes store for more information.
With this app you will be able to scan bar codes with the camera on your iPhone directly into the text fields in Tracmor for items such as asset tags, locations, and users.

iPhone Google Maps and GPS location

I have created a QR Code which displays a map of our mountain bike trails. First off I'm not an Apple guy, so I'm not sure what needs to be done to make this cross platform Android and Apple. The QR Code works correctly on Android. When scanned it opens up the kml file in Google Maps and displays the map and your GPS location.
When I scan this with an iPhone is displays the map and asks if you would like to accept sharing your current location. I accept it but it won't display my location. Is there something I need to do to make it work on Android and Apple, or any other suggestions. A little frustrating. As I look at the logs majority of the users what scan the code are iphones so I need to get it to work on them.
Update: here is a screenshot of the iPhone.
It should also have your gps location like this
Thanks for the help!
On Android, the default Google Maps behavior appears to be to show to the current location up front.
On iOS, however, it seems that Google Maps decides that the user can hit the location button if they want thier current location.
As far as I'm concerned, I side with Google.
Also, it could be that you need to try some different QR scanners - some might automatically show the location, some might decide to conserved resources instead.
P.S. To take a screenshot on iPhone, press the lock and home buttons at the same time :)

Toggle iPhone tethering by code

I live in Canada, so am fortunate that I can tether. One issue is that to toggle tethering, you need to drill down four screens in Settings, which is just a big hassle.
A Google search returned nothing, so I was wondering if anyone here knew the code to turn on/off tethering?
I know there's a toggle for SBSettings, but I do not have a jailbroken phone, I just want to create an app I build onto my phone and have an icon for quickly toggling it.
Thanks
You cannot alter phone settings from within an application using any APIs allowed by the iPhone SDK. As you point out - there is an SBSettings toggle - which relies on a Private API (which you agree not to use when you get the iPhone SDK from Apple, incidentally).
There is a file located in the Preferences folder, along with the com.apple.SpringBoard.plist:
/var/mobile/Library/Preferences/com.apple.MobileInternetSharing.plist
In that file, you will want to set 1023 for key State to enable the Tethering feature. To disable the feature, you will want to set 1022 for key State.
This action is only possible on a jailbroken device