feat(error-tracking): Add PostHog Error Tracking for Android & Web#646
Open
riley-wv wants to merge 30 commits intocapawesome-team:mainfrom
Open
feat(error-tracking): Add PostHog Error Tracking for Android & Web#646riley-wv wants to merge 30 commits intocapawesome-team:mainfrom
riley-wv wants to merge 30 commits intocapawesome-team:mainfrom
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
3 tasks
Member
|
What about iOS? |
Contributor
Author
|
Error tracking isn't supported in iOS at the moment. Once it is, I will implement it |
Member
|
@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: |
Contributor
Author
|
@robingenz this has all been merged and error tracking logic re-added |
Member
|
@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? |
Member
|
Merge conflicts must be resolved before we can move forward. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run changeset).Close #645