Can multiple Apps in the same App Group share Asset Packs?

Hello,

I have an Asset Pack that's a database. I need to use it in 2 apps.

I'm curious at the expected functionality of cross app Asset Pack distribution as I've seen conflicting behavior.

(1) Each app is required to have its own unique Background Assets Target.

(2) Uploading the asset pack requires the App ID to be included.

(3) I'm able to access the Asset Pack of App #1 inside of App #2 by using AssetPackManager.shared.ensureLocalAvailability(of:) with local testing (Not TestFlight)

This is a technical question as originally I planned to duplicate the upload of the Asset Pack to both individual apps.

Answered by Frameworks Engineer in 868875022

In general, no, multiple apps can’t share the same asset packs. The behavior that you’re seeing with AssetPackManager.ensureLocalAvailability(of:) is likely because you have a URL override configured in Settings > Developer (or in the Terminal on macOS). A URL override applies to all apps on the device that were installed for development, so all such apps will discover the same set of available asset packs unless you stop and restart the mock sever with a different set of asset packs when you switch which app you’re actively testing. If you see this behavior without a URL override configured, then please file a feedback report.

We would be very interested to learn about your use case for shared asset packs. Please file a separate feedback report that explains your need for such a feature. Thanks!

Accepted Answer

In general, no, multiple apps can’t share the same asset packs. The behavior that you’re seeing with AssetPackManager.ensureLocalAvailability(of:) is likely because you have a URL override configured in Settings > Developer (or in the Terminal on macOS). A URL override applies to all apps on the device that were installed for development, so all such apps will discover the same set of available asset packs unless you stop and restart the mock sever with a different set of asset packs when you switch which app you’re actively testing. If you see this behavior without a URL override configured, then please file a feedback report.

We would be very interested to learn about your use case for shared asset packs. Please file a separate feedback report that explains your need for such a feature. Thanks!

Can multiple Apps in the same App Group share Asset Packs?
 
 
Q