anyline-ocr-react-native-module icon indicating copy to clipboard operation
anyline-ocr-react-native-module copied to clipboard

Close Anyline trough code

Open bvanleeuwen1995 opened this issue 8 years ago • 12 comments

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?

bvanleeuwen1995 avatar Jul 04 '18 13:07 bvanleeuwen1995

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 avatar Jul 04 '18 14:07 ale-anyline

@ale-anyline Hello, how can I get in touch with you for some queries with the integration of react-native?

jose-oscategui avatar Jul 18 '18 23:07 jose-oscategui

Hi, please don't post off-topic stuff here. You can always reach us through [email protected] or with a specific issue here @ Github.

JonasLaux avatar Jul 19 '18 16:07 JonasLaux

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

jose-oscategui avatar Jul 19 '18 17:07 jose-oscategui

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.

JonasLaux avatar Jul 19 '18 17:07 JonasLaux

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?

bvanleeuwen1995 avatar Jul 27 '18 07:07 bvanleeuwen1995

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!

JonasLaux avatar Jul 27 '18 08:07 JonasLaux

Thanks Jonas, if there is anything you need from me please let me know

bvanleeuwen1995 avatar Jul 27 '18 08:07 bvanleeuwen1995

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.

matt-paul avatar Aug 10 '18 10:08 matt-paul

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

raghavendramogeraya avatar Jan 02 '19 13:01 raghavendramogeraya

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

JonasLaux avatar Jan 07 '19 11:01 JonasLaux

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!

berndkamplanyline avatar Feb 18 '22 10:02 berndkamplanyline