-
-
Notifications
You must be signed in to change notification settings - Fork 93
feat(error-tracking): Add PostHog Error Tracking for Android & Web #646
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
base: main
Are you sure you want to change the base?
Conversation
…lugin Implemented comprehensive session replay and error tracking capabilities across iOS, Android, and Web platforms for the PostHog Capacitor plugin. **Key Changes:** - Added `captureException()` method to capture and track errors with optional properties - Added `startSessionRecording()` and `stopSessionRecording()` methods with configurable sampling and linked flag options - Updated TypeScript definitions with new interfaces: `CaptureExceptionOptions` and `StartSessionRecordingOptions` - Extended Capacitor configuration interface with session replay and error tracking options - Implemented platform-specific option classes for iOS (Swift) and Android (Java) - Updated configuration handling to automatically enable features based on plugin config - Enhanced web implementation using posthog-js session recording and exception capture APIs - Added iOS implementation using PostHog iOS SDK methods - Added Android implementation using PostHog Android SDK methods **Configuration Options Added:** - `enableSessionReplay`: Auto-enable session recording on app start - `sessionReplaySampling`: Set sampling rate (0.0 to 1.0, default 1.0) - `sessionReplayLinkedFlag`: Enable linked flags for session recording - `enableErrorTracking`: Auto-enable error tracking These changes provide a unified, cross-platform API for session replay and error tracking while maintaining backward compatibility.
Commit includes: - Revert changes to root package.json and posthog package.json - Sort definitions correctly - Update version in definitions - Remove undefined type - Remove capacitor config from web package
This commit includes the following: - Remove error tracking from iOS (unsupported) - Fix session replays for android and iOS
|
What about iOS? |
|
Error tracking isn't supported in iOS at the moment. Once it is, I will implement it |
|
@riley-wv Please merge the latest changes. |
…ror-tracking # Conflicts: # packages/posthog/README.md # packages/posthog/src/definitions.ts # packages/posthog/src/web.ts
# Conflicts: # packages/posthog/README.md # packages/posthog/src/definitions.ts # packages/posthog/src/web.ts
@capawesome/capacitor-age-signals
@capawesome-team/capacitor-android-battery-optimization
@capawesome/capacitor-android-dark-mode-support
@capawesome/capacitor-android-edge-to-edge-support
@capawesome-team/capacitor-android-foreground-service
@capawesome/capacitor-app-review
@capawesome/capacitor-app-shortcuts
@capawesome/capacitor-app-update
@capawesome/capacitor-asset-manager
@capawesome/capacitor-background-task
@capawesome/capacitor-badge
@capawesome/capacitor-cloudinary
@capawesome-team/capacitor-datetime-picker
@capawesome-team/capacitor-file-opener
@capawesome/capacitor-file-picker
@capawesome/capacitor-libsql
@capawesome/capacitor-live-update
@capawesome/capacitor-managed-configurations
@capawesome/capacitor-photo-editor
@capawesome/capacitor-posthog
@capawesome/capacitor-realtimekit
@capawesome/capacitor-screen-orientation
@capawesome/capacitor-screenshot
@capawesome/capacitor-torch
commit: |
|
@robingenz this has all been merged and error tracking logic re-added |
|
@riley-wv Please take another look at your changes and clean them up. For example, the session replay changeset should not be needed as this is already merged. |
|
Any update on this? |
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run changeset).Close #645