customerio-ios icon indicating copy to clipboard operation
customerio-ios copied to clipboard

Support multiple workspaces

Open wtmoose opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. Our app allows users to connect to multiple networks that we operate. Each network has its own unique CIO workspace. Users are only actively connected to one network at a time, so we call CustomerIO.initialize() when they switch between networks. However, subsequent calls to CustomerIO.initialize() are ignored (an unexpected behavior that doesn't seem to be documented anywhere).

Describe the solution you'd like We'd like to either have the option of having multiple CIO instances or have the ability to reconfigure by calling CustomerIO.initialize() any time we need to change configuration.

Describe alternatives you've considered We see no other option than to fork the repo and implement the desired functionality ourselves.

Additional context

wtmoose avatar Oct 25 '24 20:10 wtmoose

Currently, CustomerIO.initialize() is designed to be called only once per app session. Repeated calls to initialize are intentionally ignored, as the SDK architecture supports a single active instance for a single workspace.

Are you able to share a little more about your specific use case? Specifically are you able to share any more details about what a "network" is, and why each network requires a separate workspace even though they are using the same app. If you'd rather share privately you can send an email to [email protected].

scotttwittrockcio avatar Oct 28 '24 17:10 scotttwittrockcio

~~We close off feature requests on the public repo once we start tracking them internally.~~ Please feel free to respond to this thread with more insights or requests.

Edit: We shifted our process to keep Github issues open for feature requests.

scotttwittrockcio avatar Oct 28 '24 17:10 scotttwittrockcio

Thanks. Followed up privately

wtmoose avatar Oct 28 '24 18:10 wtmoose