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

posthog.capture is not working in Tauri version 2 app #1760

Open
konsalex opened this issue Feb 22, 2025 · 0 comments
Open

posthog.capture is not working in Tauri version 2 app #1760

konsalex opened this issue Feb 22, 2025 · 0 comments

Comments

@konsalex
Copy link

As in the image attached, posthog-js seems to skip sending events in Tauri (v2) application.

I have setup the Posthog Provider and try to trigger a capture event:

  const sendTestPosthogEvent = () => {
    console.log("Sending test posthog event");
    posthog.debug();
    posthog.capture("test_event", {
      payload: "test",
    });
  };

Image

The issue as in the screenshot above is that when I open Safari targeting the Vite server, the event is being sent as expected, but when I try to send from the actual Tauri app, the event is not being sent, but there are no error logs or anything to indicate what is happening.

Version of library:

 "posthog-js": "1.222.0"
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

1 participant