Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Continuous scanning on iOS and Android #93

Closed
wants to merge 4 commits into from
Closed

Continuous scanning on iOS and Android #93

wants to merge 4 commits into from

Conversation

JanMisker
Copy link

Probably not fully ready for merging yet, mainly because I implemented only iOS for now.
Also some discussion might be needed on the new methods.

To initiate a continuous scan, startScanning(options, callback) should be called. This reuses the same ScanOptions prepare() and scan() functionality as startScan(options). The only difference is that the keepAlive is set to true on the CAPPluginCall and of course that a callback function will be called with the results. When a code is recognised there is a check on the keepAlive to determine whether we are in single scan or continuous scan mode, main difference being that in single scan mode the camera is destroyed.

Also added are methods to pause and resume the scanning.

@cies
Copy link

cies commented Nov 2, 2021

I've tested this on two iOS devices and it works like a charm!

@JanMisker JanMisker changed the title Continuous scanning on iOS Continuous scanning on iOS and Android Nov 2, 2021
@JanMisker
Copy link
Author

Also implemented for Android now, would like to get some feedback if this is the right direction. If yes I will add documentation as well.

@thegnuu
Copy link
Collaborator

thegnuu commented Jan 27, 2022

Are there any reasons this PR is not merged now and if so is there a way I can help you guys somehow?

Thanks a lot!

@JanMisker
Copy link
Author

@thegnuu I'm not sure, I never got any feedback on this and other PRs.

There are no instructions on how to communicate with the maintainer. Maybe tagging them here helps? @tafelnl ??

@thegnuu
Copy link
Collaborator

thegnuu commented Jan 27, 2022

@JanMisker this is weird, but it seems there are a few useful PRs open in the same state...

@tafelnl I would as well offer to help maintain the repo since we need it in one of our main applications in the future....

@JEVietti
Copy link

I could also really use this and the other pull requests @JanMisker has made to me merged, for use in my applications. @tafelnl

@thegnuu
Copy link
Collaborator

thegnuu commented Feb 2, 2022

I tried reaching out to ionic to somehow get access to this repo as an additional maintainer, unfortunately without any success until now. I will try it again if I don't hear anything from them....

@thegnuu
Copy link
Collaborator

thegnuu commented Feb 4, 2022

@JanMisker & @JEVietti I should be added as a maintainer soon 👍🏼

It will still take me a few days to free some time to check out all the open PRs but I should be able merge this stuff sometimes next week.

@tafelnl
Copy link
Member

tafelnl commented Feb 4, 2022

I am so sorry guys. I really lack the time to be a maintainer of this repository. I would really love to help and even bring out a complete rewrite. But I simply don't have the time right now 😔 (as I do have a lot of work on my hands, among which is maintaining this library: https://github.com/DutchConcepts/capacitor-google-maps/tree/next). So if someone on the Capacitor team can add @thegnuu as a maintainer, that would be great indeed.

@thegnuu
Copy link
Collaborator

thegnuu commented Feb 4, 2022

@tafelnl no worries! I totally understand that there are sometimes other priorities :)

I am pretty new to capacitor (at least the native stuff of it) but I will do my best to help out - but for a complete rewrite I am not ready now I guess ;)

@JanMisker
Copy link
Author

@tafelnl thanks for getting back to us 👍 (ps: I'm also in NL ;-)

I'm happy to contribute, we recently moved an app from Cordova to Capacitor, utilizing this plugin. I'm happy to help out in the maintenance of this library together with @thegnuu.

@JEVietti
Copy link

@thegnuu @JanMisker Any progress on this getting merged?

@JanMisker
Copy link
Author

@thegnuu @JanMisker Any progress on this getting merged?

I wasn't added as a contributor, we have to wait for @thegnuu

@thegnuu
Copy link
Collaborator

thegnuu commented Feb 24, 2022

@JanMisker @JEVietti I reserved a few hours next week to work on this project. If there are no unforeseen issues I should be able to merge the currently open PRs by the end of next week!

@thegnuu thegnuu closed this in 858bf51 Feb 27, 2022
@thegnuu
Copy link
Collaborator

thegnuu commented Feb 27, 2022

@JanMisker Thanks a lot! I merged the changes manually since the commit were not signed. The repo is setup to require signed commits and somehow I am to stupid to simply merge the changes other-ways ;)

Anyway, i will merge some of the other PRs today and will test all the changes at once next week, once things are working on my devices i will create 2.1.0 with some of the PRs!

@JanMisker
Copy link
Author

JanMisker commented Feb 27, 2022

@JanMisker Thanks a lot! I merged the changes manually since the commit were not signed. The repo is setup to require signed commits and somehow I am to stupid to simply merge the changes other-ways ;)

Anyway, i will merge some of the other PRs today and will test all the changes at once next week, once things are working on my devices i will create 2.1.0 with some of the PRs!

@thegnuu Thanks for taking the time to work on this!
Feel free to reach out if you need some help, I think easiest is to just tag me in an issue.

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

Successfully merging this pull request may close these issues.

5 participants