This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Description
Describe the bug
When using registerAllFlagsListener with a non-default environment (secondaryMobileKeys), the updates are not being delivered. Switching back to the default environment fixes the issue and the updates are being delivered again.
This only happens on iOS, on Android it's working. And it does not happen when using registerFeatureFlagListener.
To reproduce
const client = new LDClient();
client.configure(
{
mobileKey: 'production-key',
secondaryMobileKeys: { test: 'test-key' },
},
{ key: 'test-user' }
);
client.registerAllFlagsListener('example-1', console.log); // This works
client.unregisterAllFlagsListener('example-1');
client.registerAllFlagsListener('example-2', console.log, 'test'); // This does not
client.unregisterAllFlagsListener('example-2', 'test');
Expected behavior
Updates are still delivered when switching to a non-default environment using registerAllFlagsListener.
SDK version
5.1.0
OS/platform
iOS Simulator + real device (iPhone 13 Pro Max)