I use an HTML5 app in fullscreen mode on my iPad and I would like to print the content on a bluetooth printer.
Is there any way how to do it? The idea is, that I would just press a button and the content would be printed without any dialog window.
I know there is AirPrint and so on, but I do not need to print A4 sheets, but receipts on some termotransfer printer. I would be very glad if u could recommend me some printer as well.
Thanks in advance
Related
Use-Case : User navigates to any url on safari page, taps on the share button and can share the pdf file of the safari page through the app. Eg: iBooks, iPrint
Open safari, go to any link and tap on share button. Then go to Apple's Print extension which will automatically generate pdf which can be passed to any of the extension apps. The problem here is, the sharing mechanism is available from iPhone 6s where 3D Touch is available and we want to add our application as Printer and should be seen as Select Printer option on the Print page. This looks very promising though. I have attached the screen shots for the same.
Click on Print extension to share what you have opened on safari page :
See your application as one of the option on Select Printer:
The menu you refer to will only show currently available airplay printers and no apps.
Instead, you would have to create a action extension for your app. Just like the Printer Pro app is doing:
For how to create such an extension follow these resources:
http://www.techotopia.com/index.php/Creating_an_iOS_8_Action_Extension
https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/index.html
I working on IOT device, my touchscreen monitor does not have virtual keyboard. and my machine does not allow physical keyboard.
i already try code from 'digital signage', at first it only work single textfield.
with some little tweak on the code, i can use it for all my textbox.
my real problem is that now i'm using webview, and i need to input some data. in the webview i can't use the virtual keyboard from 'digital signage'.
is there anyone who have solution for this virtual keyboard that can be used on webview?
This may take some modification of the OnScreenKeyboard control, but here's the idea:
Capture the on-screen keyboard output
Use WebView.InvokeScriptAsync method to execute JavaScript on the web page loaded in the WebView
The JavaScript will get the focused textbox in the HTML
Set the value of the textbox to the keyboard output
I would like to know how to display the HTML5 audio controls just when the audio file is played on an iPad, iPhone etc...
I have no problem to use the preload feature on any pc or mac, but it does not work on a mobile device and need ato show the player just for iPad.
COuld you help?
You can look at the user agent (using Javascript) and check which device is trying to access your website. You might want to go with a regex approach like this for checking (for example) if it's an iPad:
var ipadDevice = navigator.userAgent.match(/iPad/i) != null;
Then use that variable to show or not show the controls.
I'm currently trying to create a suggestion UI in a web page targeted at Mobile Safari. The main components are a text box and a scrolling list that is displayed below the textbox that contains the list of suggestions.
To do this I need to 1) determine that the keyboard has shown and 2) determine the size of this in order to resize the suggestion list to fit in the available space.
I've been able to accomplish (1) by waiting for the focus event, but (2) is still problematic. I have not been able to find any way to measure the size of the keyboard as it doesn't seem to impact the window dimensions or anything else that I could think of trying to measure.
Is there anyway to programically determine the size of the iOS keyboard when it is displayed in mobile safari?
Unfortunately, there is no way to calculate the height of the keyboard. None of the window properties change when the keyboard comes up.
To determine that the keyboard is showing, you can use this solution:
iPad Web App: Detect Virtual Keyboard Using JavaScript in Safari?
Then you'll need to add a device specific class and use media queries in your CSS along with these classes to style appropriately for device and orientation.
If someone has a better hack, I'd really love to hear about it.
Is there a way/addon/extension that simulates the mobile events (touchstart, touchmove, touchend) instead of the normal mouseevents when navigating with Safari, Firefox or Chrome?
I'm trying to test some websites on iPad. If there is a iPad Emulator desktop software, would be great also, but I need some kind of Firebuging.
Thanks!
CaioToOn!
You realize there is in fact an iPad simulator, which you get when you install Xcode? (Which is free, sign up at developer.apple.com.)
Try Phantom Limb
http://www.vodori.com/blog/phantom-limb.html
You should have a look at the tom robinson's virtual light table. It includes a small but working mobile events emulator in javascript.
You can test touch input directly in your browser.
In Firefox or Chrome press Ctrl+Shift+m, which gives you a mobile view of your webpage. There you can also check if the scaling is correct.
There is a button, that lets you simulate touch events instead of mouse events.
For further information look at the chrome device mode.