i am new to phonegap, i would like to know is that possible to transfer text file from one device to another device using bluetooth in phonegap. i have gone through many example but i couldn't find any relevant answer to this.
I had seen few example which can detect nearest bluetooth devices but not about file transfer using bluetooth. Does anyone have any ideas? Thanks in advance
I'm assuming it is possible with bluetooth, but I haven't seen any examples. I'm trying to do the same thing. Also, none of the cordova bluetooth plugins I've seen support Android, IOS, Windows Phone 8.x and Windows 8.x
Related
I cannot find much recent information on this topic. Does anyone know if there is any way to both fire an Android Intent (any Intent) and listen for an Android Intent being broadcast within a HTML/JavaScript application running inside a regular Android web browser, such as Chrome?
We currently do this in our HTML/JavaScript web applications using Cordova and an Android Intents Cordova Plugin and it works perfectly. But we would like to move away from Cordova and back to using regular mobile browsers.
We are currently running our web apps on Zebra laser scanner Android devices via Cordova and the Intent fire/listen is to interact with the Zebra laser scanner. This is what we want to replace via standard Chrome web browser instead.
Anyone know if there is any possibility at all to fire/listen for any Android Intents from inside Chrome?
And yes, we are very familiar with the Zebra Enterprise Browser which would handle this situation easily (without Intents), but that is not free and we have a huge amount of Zebra devices, so that option is out at this point due to cost.
Thanks,
Brendan
I have a study project which consists in using the webrtc for a web audio video chat application and also its mobile version android ios. I have seen many different tutos, but I have to build my own server and use it locally. So you have some tutorial or technical advice? thank you
If you want to make an hybrid app means in cordova then try this link in this u can get all your answers
https://www.webrtc-experiment.com/
and if u want to make a native app in android and ios then you should try this links
https://tokbox.com/
https://github.com/webrtc/apprtc
Take a look at this repo: webrtc as well as this boilerplate: https://github.com/webrtc/apprtc - helped me a quite a lot.
I need a web application which is used to copy the files from usb drive. I can write a java applet to copy the files from usb drive, but chrome will not support applet any more. Could you please suggest any alternative to this?
I need a web application not a chrome app.
Chrome 61+ has an implementation of the WebUSB API
This would not let you issue a command to the OS/File system to, for example:
copy file://some_file_location/myfile.txt to file://USB_DRIVE/some_folder/myfile.txt
Chrome would need to read the files and write to the device directly. In other words the browser would be copying the files by reading them (see below) and then writing to the USB device. This would probably be quite slow and unfeasible for large files.
Your options to read local files are:
To run chrome with the --allow-file-access-from-files flag. This is a security issue/risk, and users would need to visit your site/application with this already on.
Use the File and FileReader, or the non-standard FileSystem APIs along with a input type="file" or drag & drop
Neither of these may be applicable to your problem/solution.
I'd recommend using node.js , its cross platform and can access usb ports from web browser..
Usb Library: https://www.npmjs.com/package/usb
Proof : How to send data to USB device in node.js using libusb
Hope this helps
I'm a software developer from Germany and I have a special problem concerning smart phones, websites and security!
My web application - which is optimized for smart phones - allowes it to upload photo files (made by the smart phone camera) up to our webserver.
(I use the regular HTML File Control.)
It works fine!
But now we think about possibilities to delete the uploaded photos on the smart phone - via the web app!
Is there any chance to realize that?
Our users work with Firefox 17.0 for Android.
Maybe Mozilla offers proprietary JavaScript code to get access to the local smart phone devices ... ?
Or is there any possibility to change the local security settings of Firefox Mobile?
If both solutions can't be realized, could I develop a smart phone app (which is locally installed) that deletes the photos on the phone? I'm sure I could!
But then I need a possibility to start the app using my website code.
So I have the same security problem - I think so ... again I need a way to "leave" my website to get access to local devices via JavaScript or something else (to start the installed app on the phone).
Is there anybody who has an idea?
Thanks in advance.
Thomas
I would like to stream realtime accelerometer data from a smartphone (preferably iPhone or Android, but I'm mostly platform agnostic) to a JavaScript app running in the client's browser. I want to send updates as rapidly as the phone will give me readings from the device.
What is the best way to do this? Could I set up a web server on the phone, then connect to it from JavaScript with web sockets?
I believe the easiest way to achieve this is to use a cross-platform api such as phonegap. See the supported native feature list here: http://www.phonegap.com/about/features
Maybe it's to late :) but its for further searchs.
Did you have a look into this link: http://www.muzzley.com/documentation/components/motion-sensor.html
Basically what you just need to worry is to do your html/javascript app. The rest is already done :)
I hope it helps.