For analytics we have three different Adobe app IDs: one for development, one for staging, and one for production. In the test version of our tvOS app we have added a way to switch between which app ID is being used. Whenever a tester switches the ID this code is called:
var extensions = [Media.self, Identity.self, Lifecycle.self, Analytics.self, Signal.self]
MobileCore.registerExtensions(extensions, {
MobileCore.configureWith(appId: adobeApplicationID)
})
However after switching to a new app ID the analytics are still being sent to the previous environment, until the app is killed and restarted.
Is there a way to make the switch so it is effective immediately, without having to restart the app?