android / android/app-bundle-samples

Followup on SplitCompat.installActivity() or SplitCompat.install()

Open
#60 21 comments 0 reactions 1 assignee Claimed by @tprochazka View on GitHub
Dominant language
C++
Stars
735
Forks
348
PR merge metrics
No merged PRs in 30d

Description

Hi, sorry guys for an attempt to reopen on the recently closed `issue` (by @keyboardsurfer), by no means I want to be rude or offensive. I have also filled this as a potential bug for Play Core Library, but might be we did some mistake during implementation).

We are using an on-demand dynamic feature module just for the resources (some additional images used in our app.). There is no code at all, only resources. For the implementation, we have followed the tutorial described [here](https://developer.android.com/guide/app-bundle/dynamic-delivery). The basic workflow works just fine, the user installs the module, the module gets downloaded and the user can display images from it. We access them via ResourceManager. However, the issue is when the application gets killed. After next start, the module is still installed, which is confirmed through the call of _getInstalledModules()._ ResourceManager also properly provides IDs of the images, however, once we try to display them, they cannot be loaded with following Error:

`No package ID 7e found for ID 0x7e010007.`

This happens even though we have tried to call code below in all related activities
```
super.attachBaseContext(context);
SplitCompat.install(this);
SplitCompat.installActivity(this);
```
In order to explain it better, I would be happy to connect via some Meets call to show details via commented screen sharing, or even provide the source code - however, issue is that our app is poorly written & documented (at best) and very complex.

So this issue reported by tprochazka (accidentally possibly also Czech guy, which is funny) has struck me because I believe this might be a related problem. Thank you for the support, we really think you guys are doing an incredible job providing us such a wonderful toolset to use in our apps.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.