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

Question: Is it supported multiple instance write key? #316

Closed
guiihlopes opened this issue Mar 22, 2024 · 1 comment
Closed

Question: Is it supported multiple instance write key? #316

guiihlopes opened this issue Mar 22, 2024 · 1 comment
Assignees
Labels

Comments

@guiihlopes
Copy link

Hi, I would like to know if it's supported multiple instances with different write keys.

Currently I'm working in a single project application which has multiple contexts. Some of these contexts should send informations to worskpace1 and others to workspace2. And I couldn't find in the docs what the best practice should be to deal with this situation.

The only information I've found about this topic is in a confused way, because there's two different information in each side:

image
Source: https://segment.com/docs/connections/sources/catalog/libraries/mobile/apple/

image
Source: https://segment.com/docs/connections/sources/catalog/libraries/mobile/ios/ios-faqs/

How could I handle this scenario which I need to split the sent informations based in a context?

@alanjcharles
Copy link
Collaborator

@guiihlopes yep, definitely. See the example here: https://github.com/segmentio/analytics-swift/blob/main/Examples/tasks/MultiInstance.swift. Please feel free to reach out to [email protected] for additional troubleshooting help and more detailed answers to implementation questions. Hope this helps!

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

No branches or pull requests

3 participants