Print from browser without dialog box - printing

A button on the website, when clicked will send print to the printer from browser without dialog box. I don't want to install anything on client's computer. Help required!
I tried JSPrint Manager but it required a client software to install on customer's computer.

Related

What are my option to print without any dialog box or prompt in blazor webassembly

I am creating Blazor webassembly app.
I have a need to print some documents on the click of a button.
What are my options to print without any further prompts or dialog box ?
I should be able to print to variety of printers like label(barcode) as well a receipt prints.
I am ok with option to have some add-ins/plugin as last option if no native functionality can be availed.

Electron Application - how to print the current page

I have an electron app built, it is basically a form.
When a user clicks finish on the form, their details get registered remotely but it is also essential that an A4 printout of the electron app screen gets sent to the default computer.
Is this at all possible with electron, I imagined it would work the same way as simply clicking ctrl+p on chrome but it doesnt work
Yes, It's possible, Check the following:
https://github.com/tojocky/node-printer

iOS Captive Network Assistant behavior on Hotspots

We have a hotspot product using SMS authentication method. The user chooses our WiFi Hotspot network and is redirected to our login page.
On iOS and Adroid, a Captive Portal pop-up is activated showing our login page. We ask users to fill in a form and submit their phone number. When they click "Submit" we send them an SMS with a verification code.
The login window (hosted on our server) changes to a new page which is displaying a field to enter the verification code. So far so good... If the user sees the "notification popup" for the SMS on his screen on top of the captive window, he can see the code and enter it in the provided field and authenticate.
But if he doesn't have SMS notification set like this, he has to go to his SMS app and look up the code. Now, the only way to do that is to close the Captive popup but then he gets disconnected from our hotspot. If he reconnects he needs to fill in the form again and gets a new SMS but he faces the same problem.
Now, all this time user is not authenticated, so in iOS the captive window displays "Cancel" in the top right corner. I have seen this same method on other hotspots, but from the first Captive window, the control displayed in top right corner is "Done". As far as I know, the difference there is that the "Done" control is shown when the user is authenticated and "Cancel" while he hasn't been authenticated yet.
Is there a way to "fool" the CNA to "think" the user has internet access and display "Done" so when Captive window is closed, the device stays connected to our Hotspot?
We are thinking either some "two-step" authentication, like temporary (to get "Done") and then the "real" one after entering verification code.
Another way might be to use some kind of script (like "Success" trick on iOS) to fool the CNA into thinking there's internet access. But where and how to apply the "Success trick"? In some of the HTML pages in the router? Or somewhere in our login page code?
Different OS versions and different platforms check for internet access in different ways. iOS for example looks for one of these:
http://captive.apple.com/hotspot-detect.html
http://captive.apple.com
etc.
Android uses (among others):
http://clients3.google.com/generate_204
The best solution is for your captive portal to allow access to these through the firewall. If you're using MAC filtering via ipfw or iptables this is easy. If you're doing DNS spoofing it's harder -- for those cases I'd just include the "success" pages in your captive portal package.

iPhone/ Android will not dismiss wifi landing page implemented with DNS

I am trying to implement a splash page/ wifi landing page on my existing public wifi network, using the DNS method mentioned in Wiki, in which I host a custom DNS server, that will redirect ALL dns lookup to a local address where a web server is hosted, for all user before they click agree.
After the user clicked agree, my custom DNS server starts returning correct ip for the look up, thus, user will be able to get online.
note: We totally understand that this is in no way secure our network, and even putting our network at risk. But the goal here is to just to pop the landing page up in front of our users.
This approach actually works on Windows Phone (Windows 8 I tested) as splash page, and even on a computer when I try to open a random website, it redirects me to my page, and after I hit agree, I can get to the internet.
When I try it on iPhone/ Android, once I connect to the hotspot, the splash page/ wifi landing page appear as expected (because the device is trying to verify internet access by going to the set of pages) However, after I click agree, and allow internet access, both iPhone and Android splash screen will not go away. I have to force iphone to "use this wifi without network" to exit.
I wonder if there is a special (javascript?) method I can call in the page, or some package I need to send to the device? I noticed on iOS, if I click a link to the App Store, the splash page go away without disconnecting from the network, So, I guess I am missing something here.
For example, clicking the link to the iOS StackOverflow App on iOS device can be a workaround.
Had been googling around for a week now, nothing seems to came up.
by the way, I am building my custom dns server on node js, with the module dnsd.
=-=-=
=-=-=-=-= edit =-=-=-=-=-=
I also uploaded a demo of my code on GitHub:
https://github.com/kylelam/dnsd_wifi
To test it, run it in your local network (sudo node demo.js). Then, change your phone's dns to your machine's IP. Disconnect your phone from wifi and connect to it again. (on iOS, you might need to go into detail, and enable auto-login, and auto-join, or if you can't, just reboot.)
*note1: the server will need to run on port 53, and 80, so it need sudo.
*note2: please don't laugh at my code, I'm very new to this. But please do point out.
*note3: you will need to npm install these packages: os, express, dns, dnsd
ttl set to 0 might be the cause of the issue, try a different value like 5.

Handling Trusted Application Status Dialog Event in BlackBerry after installing a new Application

Whenever I install my Application on the Blackberry device I get a prompt asking "Trust Application" with yes, no and help options. If Yes is selected everything works fine, if I choose No I get other prompts with Allow and Deny again and again due to permission issues as my application uses Location Services.
What I want is whenever the Trusted Application dialog comes and after Users selection of yes or no I want to show a Alert or Information telling "Please select YES in trusted application dialog for Correct working of this Application, if you selected No then you can restart the App and select YES". This is just a toast or information that appears before loading the Home or main screen of the application if Trusted Application dialog appears. How do I handle this case, can anyone help me out in solving this issue....
Thanks...
If you are using Blackberry Webworks SDK, you can use the System API to find out the available permissions (and other information about the system)
https://developer.blackberry.com/html5/apis/blackberry.system.html#.hasPermission
You should be able to do a check against those parameters and show the dialog box warning users that they have not provided permission.
If you want to find some sample code, check out: https://github.com/blackberry/WebWorks-Samples/tree/master/kitchenSink

Resources