-
Notifications
You must be signed in to change notification settings - Fork 181
Continuous scanning on iOS and Android #93
Continuous scanning on iOS and Android #93
Conversation
I've tested this on two iOS devices and it works like a charm! |
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. |
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 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.... |
I could also really use this and the other pull requests @JanMisker has made to me merged, for use in my applications. @tafelnl |
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.... |
@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. |
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. |
@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 ;) |
@thegnuu @JanMisker Any progress on this getting merged? |
I wasn't added as a contributor, we have to wait for @thegnuu |
@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! |
@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 |
@thegnuu Thanks for taking the time to work on this! |
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 sameScanOptions
prepare()
andscan()
functionality asstartScan(options)
. The only difference is that thekeepAlive
is set to true on theCAPPluginCall
and of course that a callback function will be called with the results. When a code is recognised there is a check on thekeepAlive
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.