ngx-scanner-qrcode icon indicating copy to clipboard operation
ngx-scanner-qrcode copied to clipboard

Error on iOS when scanner used together with HttpClient.get request

Open ordorub opened this issue 1 year ago • 2 comments

On Android in Chrome there are no errors, everything works correctly.

On iPhone SE 1st, iOS 15.8.1 in Chrome and Safari an error often occurs in a specific situation.

If I go from the news page to the about page and back several times, an error appears that I cannot debug. After it, GET requests stop working.

If you comment out GET requests, there is no error. If you remove ngx-scanner-crsode, then there is no error either.

Can you tell me where I should look to fix this?

My sample project with error: https://github.com/ordorub/ios Screen video: https://mega.nz/file/zlsR1QDJ#9U14lv-ZTnlb52OR-6-lrgJxIfE-0klv9ImuXjrS7Jo

ordorub avatar Feb 06 '24 16:02 ordorub

In fact, I prepared a not very successful example project. It does not work on any platform due to a camera re-initialization error. In real project, a destructor has been added for pages ngOnDestroy() { this.camera?.stop(); this.camera?.ngOnDestroy(); this.camera = undefined; } And apparently this is enough for Android and Windows, but not for iOS.

ordorub avatar Feb 06 '24 17:02 ordorub

@ordorub Currently I do not have an environment or device to test this error.

id1945 avatar Feb 20 '24 16:02 id1945