ngx-scanner-qrcode
ngx-scanner-qrcode copied to clipboard
Error on iOS when scanner used together with HttpClient.get request
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
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 Currently I do not have an environment or device to test this error.