Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open App on Scan #7

Open
santa-cruz07 opened this issue Apr 20, 2023 · 1 comment
Open

Open App on Scan #7

santa-cruz07 opened this issue Apr 20, 2023 · 1 comment

Comments

@santa-cruz07
Copy link

First, I wanted to say thank you for taking the time to release this repo. I've never worked with capacitor before, and having a library that interfaces directly with Java has taught me a lot.

I have my sample application working with the default datawedge configuration.

I'm still reading through the Zebra documentation, but I wanted to ask.

  1. Is it possible to start the application and scan the bar code data when the application isn't running? I've read into deep links, and while it is an option, it doesn't seem like best solution for my use case (multiple apps for small companies running local servers)

  2. Could we add profile selection logic to the datawedge constructor (and add an exported profile)? I'm looking add creating a pull request for this.

I understand the "[the repo] does not aim for full compatibility_", but I would love to add these features.

Best,

Bill

@jkbz64
Copy link
Owner

jkbz64 commented Apr 20, 2023

Hey, thanks for taking interest in the plugin.

  1. If you register your scan listener and put the app to the background then I don't think the app is going to receive any scan events because the javascript execution gets paused while the app is in the background. I haven't used the deep linking functionality so I can't tell you anything about it but I would assume it's more a question/functionality of the Capacitor (I'm guessing it might involve tweaking the android manifest). Are your apps android apps or progressive web apps installed directly from the browser? If the latter then this plugin is not going to work at all because it needs to execute java code which is not possible from inside PWA.
  2. If you need it and want to share with people then go ahead! There is no DataWedge constructor in the js part of the plugin so I don't think I get what you mean but feel free to hack on it and open RFC PR and we can look at it.

The "full compatibility" jut means that I'm not going to strive to implement all of the features unless I personally need them - this does not mean I'm not going to accept your pull request for a feature though! If you want to implement a new feature then feel free to do it and send pull request or fork the repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants