IOS safari or Chrome read / write file via USB - javascript

Does IOS Safari / Chrome browser allows accessing file from USB device / Stick connected via USB (Lighting to USB adapter)? I did a quick google and seems like uploading (write) is not possible but maybe read is possible?
According to this https://caniuse.com/#feat=filesystem
Seems like IOS Safari does not support file system / file writer api
But it supports File api
https://caniuse.com/#search=file%20api
Any comments would be highly appreciated.

In iOS, File API connected to 'Files' application which provides connection to several cloud services and access permission to internal shared storage.
Currently, 'Files' application doesn't support file access to external devices.
If you want to access to external devices with File API, you must use 3rd party application which supports 'Files' application as a pipe.

Related

access web serial api in android chrome browser

using web serial API in windows, mac os, and Linux chrome browser I can receive and send data. but in the android chrome browser, I am not able to send or receive data from a serial device.
so which API is used to read and write data to serial devices in the android chrome browser.
also, there is a polyfill serial API for android chrome but is showing an error shown in the image.
The team that built the implementation of the Web Serial API in Chromium also wrote a polyfill library which uses WebUSB to support platforms which don't provide built-in serial drivers: https://github.com/google/web-serial-polyfill
It looks like you are already trying to use this library. Can you file an issue on the library's GitHub project so the team can look at the error you're seeing?
Note, it seems like there are some Android devices which have USB serial drivers that end up blocking WebUSB from claiming interfaces even though the platform doesn't let apps actually use them. https://crbug.com/1099521 is tracking a workaround for that.

Edge Extension: Need to share credentials with a WPF

I have a WPF app that stores credentials in a local file. I need to be able to access this file from an Edge extension or to somehow communicate the credentials from the WPF to the Edge extension. Can an Edge extension use the File API or is there something similar to Native Messaging for WPF that would allow me to communicate with the Edge extension?
As of builds 15002 and above (only available to Windows Insiders currently), Microsoft Edge supports native messaging to UWAs: https://learn.microsoft.com/en-us/microsoft-edge/extensions/guides/native-messaging
If you want to communicate with a WPFapp, you'll need to use the Desktop Bridge to convert it to a UWA before continuing.
If you need to sign up for the Windows Insider Program, you can do so here: https://insider.windows.com. Native messaging will also be available in the Windows 10 Creators Update once it's released publicly!

Can intel xdk html5 based app work only when internet connection is enabled

I want my app not to be accessible without internet connection. I am developing app using Intel XDK by using HTML5 language . Now when I build my app that works without internet connection but I want my app to work only when internet connection is enabled.
instead of using the application.appcache to allow content to be stored and used from the cache, you can specify that all files (or perhaps just critical files that allow the app to start?) are listed under NETWORK.
"To ensure that the application requests the file from the server even if the cached resource is cached in the application cache, you can place that file in the NETWORK: section."
http://apress.jensimmons.com/v5/pro-html5-programming/ch12.html
or check for connectivity using navigator.onLine or other methods - see http://www.html5rocks.com/en/mobile/workingoffthegrid/
List a file under NETWORK: that is used by the app each time and it will have to go to the internet to retrieve

Use JavaScript for sending/reading sms on Android phones?

I use PhoneGap for developing native apps on Android platform. Previously there used to be a Javascript function for doing that. But currently that function is not included in the their API. Is there a plugin or any another JS based API which I can use to send/read/delete sms on an Android phone.
Plus: Can I get access to the folder where the smses are stored on an android phone?
PS: I know the URI way of sending sms so that wont count as an answer
Is there a plugin or any another JS based API which I can use to send/read/delete sms on an Android phone.
There is no support in the Android SDK for "read/delete sms". You are welcome to write a PhoneGap plugin for Android that ties to SmsManager to send SMSes, though.
Plus: Can I get access to the folder where the smses are stored on an android phone?
For starters, there are many SMS clients, and so there are many different stores for the SMSes. I am not aware of any SMS client that offers an API for manipulating those messages. Certainly, the Messaging app from the Android open source project does not have a documented and supported API.
you can access the sms database if you have ("root") its etc/data/data/telephony/mmsm.db or something like that depending on your version google
directory of sms database in android 4.0 then you can use es file explorer or another file manager to access this database...
you can also view deleted sms in this database...

Read Local Registry with Browser Based Javascript - Google Desktop API

Can I use javascript in a Google Chrome packaged app (a.k.a. browser extension) to read a user's local registry key (i.e. stored query url, a.k.a. the search_url key for Google Desktop)? If so, some example code to access this would be much appreciated!
Background / Detail
I am trying to write a browser plugin which opens up the users Google Desktop homepage in their Chrome browser. The url is: http://127.0.0.1:4664/&s={search_url key}
According to the Google Desktop API docs, this can be accomplished by using the HTTP/XML-Based Query API. I'm hoping that there is an HTML5 specification (e.g. File API) which provides a standard procedure to read local files, given the users permission.
In order to do this, I need read access for the local search_url key. Depending on the user's OS, the API doc offers two possible local file locations that contain the search_url key:
Windows
HKEY_CURRENT_USER\Software\Google\Google Desktop\API\search_url
Mac OS X
CFStringRef val = CFPreferencesCopyValue(
CFSTR("search_url"),
CFSTR("com.google.Desktop.WebServer"),
kCFPreferencesCurrentUser,
kCFPreferencesAnyHost);
if (val) {
// act on the value
CFRelease(val);
}
Alternative Approach for Windows OS
Apparently, NPAPI (http://code.google.com/chrome/extensions/npapi.html) allows a Chrome app to run a dll in Windows, but I'm not very familiar with the Windows API or VB and would like to avoid using them, if possible.
Unfortunately you cannot access the Windows Registery unless you do it using NPAPI.

Categories

Resources