Skip to content

Conversation

@JoshKiff
Copy link

@JoshKiff JoshKiff commented Oct 7, 2025

Summary

  • Adds changeWorkspace() method to allow switching between Intercom workspaces
  • Android: Uses native changeWorkspace API (SDK 16.1.0+)
  • iOS: Implements via logout and re-initialization pattern
  • Web: Implements via shutdown and boot with new app ID
  • Includes platform-specific API key parameters (androidApiKey, iosApiKey)

Implementation Details

  • Platform interface updated with new method signature
  • Method channel implementation added for iOS/Android
  • Web implementation using Intercom JS SDK
  • Proper error handling for missing required parameters
  • Code formatting improvements across multiple files

Test Plan

  • Test workspace change on Android with valid credentials
  • Test workspace change on iOS with valid credentials
  • Test workspace change on Web with valid app ID
  • Verify user is logged out after workspace change
  • Test that login works correctly after workspace change
  • Test error handling with missing parameters

🤖 Generated with Claude Code

@JoshKiff JoshKiff changed the title feat: add changeWorkspace method Add changeWorkspace method Oct 7, 2025
Copy link
Collaborator

@deepak786 deepak786 left a comment

Choose a reason for hiding this comment

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

Thank you for the PR.
To review it properly, please remove the unwanted changes.

@JoshKiff JoshKiff force-pushed the add-change-workspace-method branch from 194a5ab to f9f82f1 Compare October 8, 2025 09:27
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@JoshKiff JoshKiff force-pushed the add-change-workspace-method branch from f9f82f1 to 7aca00a Compare October 8, 2025 09:32
@JoshKiff JoshKiff requested a review from deepak786 October 8, 2025 09:33
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.

2 participants