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

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

Open
ordorub opened this issue Feb 6, 2024 · 2 comments
Open

Comments

@ordorub
Copy link

ordorub commented Feb 6, 2024

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
Copy link
Author

ordorub commented Feb 6, 2024

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.

@id1945
Copy link
Owner

id1945 commented Feb 20, 2024

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

Repository owner deleted a comment from daiduongdjv Feb 20, 2024
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