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

Amplitude Init failing in Chrome Extension V3. #448

Closed
abhishekops opened this issue Nov 17, 2021 · 3 comments · Fixed by #467
Closed

Amplitude Init failing in Chrome Extension V3. #448

abhishekops opened this issue Nov 17, 2021 · 3 comments · Fixed by #467
Labels
question Further information is requested

Comments

@abhishekops
Copy link

abhishekops commented Nov 17, 2021

Summary

I'm trying to integrate Amplitude into background scripts of Chrome Extension manifest V3. Amplitude Init fails with the following trace, upon digging into it, its the following error.

This is expected to fail as the manifest V3 version of Chrome Extension background scripts don't have access to DOM, and they are run as service workers, which explains the issue. I would like to know if there is a way to integrate Amplitude where window/document objects aren't present. Its really critical for us to integrate Amplitude into the background scripts, as most of the important action happens there. The recommendation in the error message to use @amplitude/node wouldn't work in our case too, as its not a node environment. Kindly assist if there is a solution or any workarounds for the problem. Thanks in advance.

@abhishekops abhishekops added the question Further information is requested label Nov 17, 2021
@jooohhn
Copy link
Contributor

jooohhn commented Dec 2, 2021

@abhishekops it's something we're looking to introduce in January. thanks for the feedback

@jooohhn jooohhn closed this as completed Dec 2, 2021
@abhishekops
Copy link
Author

@jooohhn Thanks for the confirmation. Kindly update this thread when this rolls out in January.

@kevinpagtakhan kevinpagtakhan linked a pull request Dec 21, 2021 that will close this issue
6 tasks
@kevinpagtakhan
Copy link
Contributor

We just released v8.14.0 which includes support for web worker environments. We'd totally appreciate if you can provide any feedback on this new feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants