Trigger.io barcode.scan - keep open - trigger.io

Is there a way to keep barcode scanner open until cancel is pressed?
My requirement is that the barcode keeps scanning and returns values until cancel is pressed.
I currently have that functionality by calling scan again on successful scan but it takes a while for the scanner to initialize each time.

This capability is not available in the forge.barcode API at present, so the only way to achieve the exact behavior you're after would be to write a native plugin:
https://trigger.io/docs/current/api/modules/barcode.html
If you would like help developing such a plugin, email support#trigger.io and we can recommend contract developers familiar with our system who may be able to assist with the project.

Related

Setting autofill in Cordova for iOS

I'm pretty new to Cordova dev. and I'm trying to achieve the following.
We have an application, running both on Android and iPhone, written in AngularJS,
under the Cordova framework.
In order to use our application, we require the users to send their phone number,
receive an SMS containing an OTP, type the OTP into a shaped text field, and press
a button for sending the OTP (and receiving an authentication token).
I was asked to enable the simple feature of enabling the application to do that
automatically, meaning it would parse the SMS, feed that input field, and send
the OTP, without any user intervention.
This is pretty easily achieved on Android, using a specific SMS Receive plugin,
but cannot be done in iOS.
However, I saw that it can be achieved semi-automatically on the new iOS versions,
but I have to change the input field type to "one-time-code". I tried to do that
on my Cordova code, and I couldn't achieve that, no matter what I did. I would
like to know how to do it through Cordova, if this can be done, anyway.
You should be able to do this using purely HTML without needing a Cordova plugin or any native iOS code as described here. Just set the autocomplete attribute, not the type attribute, of the input element to one-time-code:
<input id="single-factor-code-text-field" autocomplete="one-time-code" />
In my case it had to contain the word 'code' in the message then space and then the code you want to show. I'm not sure but I think it gets the symbols till the next space because I had more symbols after.
ex: code 123456

Programmatically email .logarchive file

Looking at the changes introduced in 2016 to logging in iOS, I am wanting to locate the .logarchive file and attach it to an email programmatically in swift.
The following lead me to believe that this is not possible, but I was hoping someone out there has had some success.
Obtaining app logging
Release build debugging strategies
Unified Logging and Activity Tracing
These articles seem to suggest that the user needs to explicitly connect their device to a computer to access the logs. I am wanting to have the user simply tap a button in the app and be able to send us their console logs.
From iOS 15 OSLog can be read programmatically using OSLogStore. Unfortunately there is no system provided function to write it to a logarchive. For now you need to build the body with formatting of the file yourself.

Call directly without extra dialog in iOS using Ionic 4

I'm trying to call a number from my app, but I want to do that without having to click on the modal that appears with "Cancel" and "Call" after I clicked my button in the app. Just click the button in the app and go straight to the call. Can I do that?
I already installed the native plugin [call-number] and the ionic package. It's working, it's making the call, It's just that I would like to make the call without that extra step.
Not sure if thats possible. Plugins provide communication between the ionic layer and the native layer so you are usually limited by the options the plugin gives you.
According to the documentation all you can do is bypass the choice of the calling app.
https://github.com/Rohfosho/CordovaCallNumberPlugin
You can't bypass that dialog. It is provided by iOS as an extra layer of protection for the user. It stops malicious apps initiating calls that may incur costs without user acknowledgement.

How to make my iOS APP share files directily to another APP like Workflow "Open in" action

Here is the Workflow Action. It seems that Workflow can send a file to another APP directily. Any ideas?
The normal way to send a file to another APP is using Share Extension, but Workflow APP could send it directily without showing the Action Sheet and selecting an APP.
If you set an action like this and run your workflow, it just open the selected APP and that APP got the file.
So I just want to know is there any way to make it happen? Or it just a secret API of iOS and Workflow just use it because of the purchase?
Your exact question needs to be stated more clearly (e.g. exactly WHAT you are trying to accomplish instead of just "integrate"). To get you started, some quick info:
At my last check, Workflow integrates with apps in a few main ways:
1) Via the iOS sharing/share-sheet interface.
2) Built-in support for the app within Workflow itself.
3) (of course, Workflow can also leverage Callback URI's of other apps to integrate with them like any other app can.)
If you want to have direct, built-in support from Workflow, the Workflow team itself must add the support into the Workflow app. This is easier for them (and others) if your app exposes a proper API with functions that allow direct integration.
Going into this further is too broad of a topic for a quick answer. I hope this helps some.

Siri Kit For Home Automation App?

after reading the apple doc on SiriKit, there are only 6 services where Siri SDK can be used. But i would like to know if there is any crack or way where i can use this in my home automation app, where the api request is sent to my server on my voice command.
Edited 2018
Is it possible now with the release of iOS 12, WWDC 2018 and the new updates in Siri, Siri Shortcuts.
Thanks in advance
As you have already pointed it out that there are currently only six categories which are supported by SiriKit. If you want to achieve something like Siri, you can give try to SpeechFramework introduced in iOS 10. That is not actually like SiriKit, but you can achieve your goal with some efforts and playing with the framework. Here is the very good tutorial for using SpeechFramework.
For the point of any crack or something, I would highly not recommend it as there may be chances of app disapproval from apple.
EDIT:
Please check the EDIT section in question.
You can kind-of do it with Siri Shortcuts, but it takes effort from the user.
There is no way for the you to create a special voice command. Only users can go into Settings > Siri Shortcuts and define a voice command to execute a shortcut you created from the Application.
Also, note that the voice command cannot have any parameters that are passed to the application. The voice command would have to execute a specific action that was defined by the application via the Shortcut. So, "Turn on light X," is a different shortcut than "Turn on light Y." The user would have to create two different voice commands.
As far as the shortcut goes, you can execute pretty much any code, so making an API call shouldn't be an issue.

Resources