What is the best practice to migrate realm shared with app groups + extensions?

We are sharing the realm db between different app groups and extensions. What could be better practices to follow during migration which involves app groups + extensions.

@Shreesha_Kedlaya Welcome to the forums!

It’s important that questions are clear and contain enough information so we understand what’s being asked.

When you say ‘sharing a realm’, in what context are you sharing? Is this a sync’d realm with multiple users or some other implementation? Sync’d realms don’t have a migration so that’s a bit unclear.

Can you tell us what ‘app groups’ and ‘extensions’ mean in this use case?

And when you ask about ‘better practices’, better than what? Are you encountering an issue? If so, what is it?

Provide more info and we’ll take a look.

@Jay There is an issue we are encountering during migration in iOS. The realm is not able to migrate after schema update. We could reproduce if we share realm db with app groups + extensions (widget extensions). We wanted to know if we are following correct practices while migrating realm in this scenario. We have already posted an issue in here . You can go through this for more info.