Close Anyline trough code
Hello,
I would like to hide the Anyline scanner when the user puts the app into background, I have a event listener setup in RN which works very well and updates several aspects of the app.
Did I miss something ore is this call currently not available?
Hello Bob, I am not exactly sure what you mean by "hiding the Anyline Scanner when when the user puts the app into background". Could you please clarify this a little bit? Do you mean if the scan view is open and the app is sent to background, that the scan view should be closed automatically? Thanks.
@ale-anyline Hello, how can I get in touch with you for some queries with the integration of react-native?
Hi, please don't post off-topic stuff here. You can always reach us through [email protected] or with a specific issue here @ Github.
I know, but you answer after hours. As in this case.
They must improve their customer service and give an answer as soon as possible. @JonasLaux
Hey, sorry if you are not satisfied with our support, but please don't write in this thread, because it has nothing to do with this issue. Feel free to open a new one. I will delete every further off-topic answer in this thread.
Sorry for never coming back on this, I will explain in a little more details what I'am trying to do.
Currently I open the scanner with the normal provided method, this works just as we want it to. However I have added a little event listener in the javascript code of the application to listen when the user puts the application in the background to have various modal and popups, we would like Anyline to be one of them when it is visible.
Is there any method available that I can call, ore something else that I can do that will hide the Anyline scanner?
Hey,
unfortunately at this moment there is no "cancel" call for the React-Native plugin implemented that you could call from the Javascript. The Promise only will be resolved/rejected if the native code does so (eg with successfully scan or cancel in the native code). But i have to say this is a really good idea. I will take this as enhancement!
Thanks Jonas, if there is anything you need from me please let me know
Just wanted to show support for this enhancement which will be really useful. In our use case, it would be to close the Anyline view if the user had not scanned a code after a period of time.
Hi Jonas, Whether 'cancel' is available in the latest version (Anyline 6)?. How to close the scanning if the user wants to skip for now(required for ios, as there is no back option) @JonasLaux
Hey, For iOS, there is the possibility to create a cancel button https://documentation.anyline.com/toc/platforms/react-native/getting_started.html#ios-done-button-configuration
We don't actively monitor the Github Issues, please raise a support request using the Anyline Helpdesk. Link to Anyline Helpdesk: https://anyline.atlassian.net/servicedesk/customer/portal/2/group/6
When raising a support request based on this Github Issue, please fill out and include the following information:
Support request concerning Anyline Github Repository: [URL to relevant Anyline Github Repository here] Support request based on Github Issue: [URL to relevant Github Issue here]
Thank you so much!