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

LG-12920: add analytics event for tracking unexpected sdk error #10368

Conversation

night-jellyfish
Copy link
Contributor

🎫 Ticket

LG-12920

🛠 Summary of changes

Implements the setUnexpectedErrorCallback method from Acuant setup instructions (step #5).

We wanted to implement this now in case it gives us useful messages about the black screen issues in LG-12671.

📜 Testing Plan

I could not find a way to test this or to trigger it locally. It needs to be an error that happens after SDK load but before initialization. We would like to have a test for it, or at least have a way to trigger it manually, but we don't believe we have a way to do that.

@night-jellyfish night-jellyfish requested review from a team and eileen-nava and removed request for a team April 4, 2024 22:33
Copy link
Contributor

@charleyf charleyf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acuant does not provide any information on what might trigger this. I think having this is better than not having it. We might want to add a note above the
window.AcuantJavascriptWebSdk.setUnexpectedErrorCallback((errorMessage) => {
like Unclear if/how this is called. Implemented just in case, but this is untested.

@night-jellyfish night-jellyfish merged commit 904a151 into main Apr 9, 2024
2 checks passed
@night-jellyfish night-jellyfish deleted the brittany/lg-12920-add-acuant-set-unexpected-error-callback branch April 9, 2024 16:40
night-jellyfish added a commit that referenced this pull request Apr 9, 2024
[skip changelog]

Suggestion missed in #10368 that I think is a good addition.
@night-jellyfish
Copy link
Contributor Author

@charleyf apologies I missed making the change you suggested. Added in a new PR - #10397.

night-jellyfish added a commit that referenced this pull request Apr 9, 2024
[skip changelog]

Suggestion missed in #10368 that I think is a good addition.
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

Successfully merging this pull request may close these issues.

None yet

4 participants