Printing QR Codes with Cordova on iOS - ios

I am looking to add functionality to an existing Cordova-based tablet app that runs on iOS (intention is to allow Android later hence Cordova).
We would like to add the ability for users to print a QR code from the app, we know how to generate it.
I am aware of the various libraries out there such as:
https://github.com/don/BluetoothSerial
https://github.com/katzer/cordova-plugin-printer
https://github.com/srehanuddin/Cordova-Plugin-Bluetooth-Printer
Does anyone have any experience with this and can shed some light on how best to achieve this?
As I understand it we could simply send the appropriate commands to the printer, however it seems to me that this might not be possible due to AirPlay restrictions?

Related

Use Restrictions Payload **allowScreenShot** from configuration profile on IOS app

Is there any way to use the allowScreenShot restriction payload inside and IOS app to disable screen captures?
I've been looking for a way to block screen captures on my IOS app and I came across with this document: Configuration Profile Reference
So I start wondering if it's possible to use this information inside an IOS app.
If someone knows the answer please help me with an example. Thanks!

URL scheme to open Gmail native app from Chrome on Android

I'm trying to implement a feature over on Android, basically, on the web, you can use googlegmail:///co?to=email to open a compose view on the native Gmail app.
googlegmail:/// doesn't seem to work on Android and I'm really unsure if this type of functionality is possible on Android. Even if it exists for some other app, it would be great to get a working example on Android! Any clarity would be appreciated.
On Android you need to use an Intent, which is what allows you to start other apps.
Check out Compose an email with optional attachments for an explanation of how to do what you want.

How to dismiss or suppress permission issue automatically related to Contacts, Camera, Microphone in iOS Application

I have been working on a project wherein i made a framework where i automatically test the SDK my company is developing.
I have created my dummy sample application for all the platforms(iOS, Android, OSX, Windows) which makes use of this SDK and i thereby test this SDK, call the SDK API's do my work.
Now my question is for iOS i get permission alerts for Contacts, Camera and Microphone first time whenever i use the API's of my SDK which internally is invoking something in iOS framework. Is there a way i can automatically give this permission to my application ?? i know it's iOS own Security concern and it's correct. But how do i bypass it.
I see there is Apple's XCUITest framework but i don't want to open my application via it.
Right now i handle this alert manually but i need to implement Continuous Integration(using ios-deploy), i have done everything but i can't handle these alerts automatically.
Can someone please help me.. Thanks!!

Allowing users to highlight text in app for iOS (AS3)

I am creating an app which generates conjugations for Japanese verbs.
I would much like the generated text to have the ability that people can highlight the text to copy it to clipboard on an iOS device if they need to.
So far I am able to make it work with android OS, windows, OSX and browser.
For some reason though I am unable to get it to work in iOS.
The only option I have enabled is the "Highlightable" option in flash and with this small option enabled it works in every single platform but iOS.
Has anyone else run into this issue? Is it a limitation of iOS?

share data between iOS native app and browser app

I am a rookie iOS developer trying to figure out this. Pardon me if I am asking basic question.
I need to set an unique identifier in the device (iphone or ipad) that can be read by the app (can be browser app or native app). Is this feasible ?
Reason being: the device needs to be uniquely identified. The user might be able to use the installed app or through browser as well.
Thx.
You can create a HTML element containing any amount of content and hide it with CSS. Sometimes I use an 'input' element just for that and read it with javascript. I think you use data-uri also.

Resources