-
Notifications
You must be signed in to change notification settings - Fork 886
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
Reseting AWSPinpoint at runtime #5465
Comments
Hello, Thank you for posting this issue. Our team will take a look and post updates here. |
I would really appreciate a reply on this one @thisisabhash. Thank you. 🙇 |
We do not currently support resetting plugins. I'm going to mark this as a feature request. If you could please provide more information on your use case, it would better help us understand scenarios where this may be needed. Thank you! |
@RuiAAPeres could you please elaborate as to what exactly you'd like to achieve by "resetting" the You can always just recreate the whole |
Hi @ruisebas We have a case where depending on the region of a user (EU, or US) we would create a Pinpoint entity with a different setup. We only know where they belong after login. So we want to be able to use Pinpoint before and after the login. So after the login, there might be a chance to change setup. |
In that case, you should be able to create a new // Your new service configuration
let serviceConfiguration = AWSServiceConfiguration(
region: region, endpoint:
endpoint, credentialsProvider:
credentialsProvider
)
// Your new pinpoint configuration
let pinpointConfiguration = AWSPinpointConfiguration(
appId: pinpointAppId, // Or if it's the same as the old one, you could just do oldPinpointClient.configuration.appId
launchOptions: oldPinpointClient.configuration.launchOptions
)
pinpointConfiguration.serviceConfiguration = serviceConfiguration
pinpointConfiguration.targetingServiceConfiguration = serviceConfiguration
let newPinpointClient = AWSPinpoint(configuration: pinpointConfiguration)
let newPinpointAnalyticsClient = newPinpointClient.analyticsClient |
I need to reset our
AWSPinpointAnalyticsClient
. Is there a way to do this at runtime?The setup I am using:
I would hope to have some kind of
reset()
, orclear()
, but I couldn't find anything.Thank you. 🙇
Which AWS Services are you utilizing?
AWSPinpoint
Environment(please complete the following information):
2.37.1
The text was updated successfully, but these errors were encountered: