-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Followup on SplitCompat.installActivity() or SplitCompat.install() #60
Comments
No offence taken. I closed the issue as it was not directly related to the sample at hand. Can I ask you to add links to the issue you created? We don't generally offer 1:1 support for development outside of office hours at some conferences. |
I fully understand that this is not some kind of a service desk :) - Link to the issue filled to the bug tracker. And also yes, we are having There are probably a lot of different ways how to implement desired functionality (provide image resources as an add-on). Just wanted to understand whether there is a bug in Play Core Library, or whether we did something wrong during implementation after I have spent a couple of days with it, I am just curious. It could even be that I did not get the whole concept right and we are misusing the dynamic delivery modules for something they were not intended for. Honestly, I have not found many other apps using Dynamic Delivery Module to provide the same functionality, so might be that we are getting this completely wrong. |
What you're describing is news to me. Does this occur on the |
Sorry for the delay, our app uses this and it is Java one, so I am currently kind of struggling with build Kotlin based code app bundle.. |
In the sample app, it does not happen, so I see I am barking up the wrong tree here. But I see this relies on the different feature (dynamic asset delivery), probably we are going to try to implement this and store our images in assets instead of drawable. Thanks for your support and time, I guess we can close this one. |
It's even harder to found reason for such error because there is missing source code. It's open just stubs method during debugging and documentation is quite brief :-( |
Yes, but I think Ben's point is that this is not an issue of this app bundle sample, but more probably a general bug in dynamic feature modules itself. |
Yes. It will be. Actually, the sample works even with bad SplitCompat.install() |
I eventually ended up getting the same error as you @tprochazka, just not for the string resource, but for the image. My use case: In my main app module, I load a list of resources coming from the dynamic delivery module (com.xxxzzz.fg) like this:
Then, still in the main app module, I pass this drawableResId to popular 3rd party gallery (StfalconImageViewer). More precisely, I set it as Seems like there is some difference between resources located in main app module and feature module, but I cannot find any mention of this in the documentation. Note that using Dynamic Assets is not a good option for us, as we need to work with image resources for various reasons... |
Just after a module is installed I can access any resource which is directly in my module. But it always fails for a resource inside of any 3rd party library (which should be part of module too). |
Thanks for the continued discussion on the topic. |
Also, could you confirm that you're either extending from |
Thanks for being patient with us. Honestly, now I think that there might be some kind of issue in PlayCore. I have tried both |
Thank you for confirming. Apologies, PR is short for Pull Request. |
Ok, as I work with GitLab normally, where there are MRs, PR did not rung the bell :). I will try to provide PR. |
It works completely random. My app started working somehow. I just moved several 3rd party libraries to the main module instead of the feature module. But now I added some new dimension to my feature module and accessing it by It is very sad, that the whole SplitCompat is the close source and even obfuscated. Is almost impossible to found why this happens. I would like at least to understand what
|
@bazinac Do you have WebView in your app? I just found that my problem is caused by WebView. |
I created bug report for it here |
Thanks for reporting this issue. It sounds like you have a sample to reproduce this ready. Can you either attach it to the issue you created or open a PR on this repository? This way we can make sure that reproduction is possible. |
Sample code is very easy, but I created it here: |
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. 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
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.
The text was updated successfully, but these errors were encountered: