I have an app that I developed and it uses webusb to print to a Hp Thermal printer. The app works ok and prints just fine. The issue is that whenever I restart the browser the pairing is lost and then I have to re-pair every morning before starting work. Is there some javascript or setting that I need to enable in chrome to have it remember the pairing once the browser/pc is restarted.
This is the expected behavior for USB devices which don't have a serial number, as the browser can't tell that the same device is plugged in when the computer restarts.
There is a workaround available for users who can set device policies, as the WebUsbAllowDevicesForUrls policy allows you to pre-configure a set of USB device permissions for the sites you choose.
Related
I sort of make shift followed this guide on how to setup remote debugging. Since I am using Adobe Animate to compile my app I assume it has done the majority of the build steps already as I get a similar screen described.
I don't understand though. Here I have port forwarding up on my router so that it goes to my PC. I have TCP port 7935 up and open. Windows firewall on or off doesn't seem to make difference. Windows firewall even prompted me to allow or deny fdb after I ran it. I can't get my phone to connect via remote debugging. I want to be able to send this to my client who is having issue with the app so I can see what's going on under the hood instead of relying on a giant sum of try/catch statements and screenshots. Any help?
I tried a dummy domain and it seems to know that it can't connect to it. When I try mine or my IPv4 it doesn't let me connect. It just freezes up the app.
I don't know whether it works or not in Animate CC, but it works via Flash Builder. I'm using Android real device and I have Android SDK tools installed on my PC
Yes, I have followed that tuts from official Adobe docs, but that doesn't work
First: Simply connect your device to your PC
Actually , you can debug your app remotely as long as your device has been connected with your PC. This step, doesn't necessarily requires FDB.
In my case , all I need was things like
adb connect 192.168.xx.xx:port
this will connect your Android device with your PC on your default network .
Second, set debug setting over network
You've done it in Animate CC, with addition you might want to check "install application on the connected device'
Third, just debug as usual
You can get all those debugging stuff including traces
I'm making an application for Chrome based on the serial API in order to send and receive data from a USB device that registers as a virtual serial port.
The problem I'm having is that when I remove the device and the connection is established the browser crashes and I don't have any idea why as the debug console also closes and the Chrome crash reporting (chrome://crashes) isn't showing anything (OSX 10.9.4, Chrome 37.0.2062.94). I suspect a low level exception in Chrome that isn't caught. The best I can do is an Apple crash report.
Is there any way to prevent the browser from crashing (some check before the browser thinks it's in an illegal state...), I know the simple answer is not to unplug while the device is connected, but I'd like a more monkey-proof solution.
I want to make an application which will reside in USB and as soon USB is plugged it will open Google.com in its default browser(It should run in all platform Mac,Windows,Linux). I tried making Autorun.inf file but it didn't help.I will appreciate any kind of help in this matter.
You may want to use a browser resident on the same USB.
There's a version of portable Chrome on portableapps.com
I am trying to create a windows phone 8 application but the emulator does not show me the map. all I get is this.
as you can see no land mass is show and no roads are shown. I have panned around and come across nothing and the emulator location is set to an area where land should show.
If I run it on my device it works fine and the map loads.
Could this be due to a port blocking issue or something silly like that.
Cheers
Mark
The approved answer might not be 100% correct. Check out the following blog post, and you will notice, that your emulator probably doesn't have an access to the internet.
http://michalstawarz.pl/2013/01/26/windows-phone-8-emulator-maps-display/
Windows Phone emulator supports Bing Map for sure.
It seems the Problem may be due to
Network Connectivity Issues with Host PC
Proxy Issues
Other Issues
Workaround for the above Issues.
If you see blank blue map screen as in http://michalstawarz.pl/2013/01/26/windows-phone-8-emulator-maps-display/ as Michael referred.
Then its good to go. Problem is Internet connectivity / proxy not configured.
If its is Network Connectivity, then troubleshoot your system network adapter. Problem may be due to limited network connectivity / PC not connected to internet.
If it is proxy then,
Get IP Address of "Internal Ethernet Port Windows Phone Emulator
Internal Switch" using IPCONFIG in CMD prompt
Then Enter it under Exception List in IE's LAN Settings >> Advanced >> Exception
Other Issues may be due to Not Configured / improper IP configuration when adapter's IP setting changed manually.
If it is the case -- then Remove all virtual adapters using Virtual Switch Manager Menu in Hyper-V Manager and RUN Emulator with ADMIN Privileges.
Maps are not supported on the Windows Phone 8 emulator.
Maps are now supported, and the original question is no longer valid.
If the answers from Micheal and Prakash doesn't solve your problem.Then try this-
Open regedit in the C:\Windows folder.
In Registry Editor open
for 64 bit Windows-
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\InternetExplorer\MAIN
\FeatureControl\FEATURE_BROWSER_EMULATION and then create XDETools.exe with hex value 2328.
for 64 bit Windows-
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InternetExplorer\MAIN
\FeatureControl\FEATURE_BROWSER_EMULATION and then create XDETools.exe with hex value 2328.
Source-http://igrali.com/2012/07/30/windows-phone-location-tool-in-emulator-down-no-problem/
I'm developing a windows phone 8 application, which relies on IsolatedStorageSettings for saving application settings. I don't own a real device, so i'm using the emulator to test the app. Application settings persist correctly during the whole application lifecycle, even when you quit the application by navigating to the Windows Phone 8 start page and re-run it.
Application settings don't persist if i close the emulator and re-run the app.
The question is: would application settings persist correctly in a real device after it has been turned off?
Thanks
Yes. IsolatedStorage is persistent across power on/ off cycles of the device. The Application settings or IsolatedStorage is cleared only when the user removes(uninstalls) the app from the device.