-
Notifications
You must be signed in to change notification settings - Fork 1
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
Android 10 PackageInstaller support #21
Comments
Can you give some guidance what is not working on android 10? |
Hi, there is a problem on android 10 or higher on the App Store Distribute. Basically when the download is finished the application crashes, seems to be related with the fact that android 10+ does not allow packages download through Download Manager API but now it needs to use the Package Installer. I've attached few logs. Stack traces of the crash
And the second type of crash
|
Hmm strange because I am using this package until the beginning on the latest Android version. |
Galaxy Note 9, and the sdk is 33 |
Sorry for reopening, did you came to a conclusion to what is the problem? |
I need to do some investigation. I am currently updating the package first. So it has the latest dependencies & dart target |
Ok, wish you good look, until then I'll fallback to PWA cause i'm near deadline and already spent 2 days on it :) |
I would not be surprised if it is a Samsung bug :D but I will take a look at it. |
Its not. Same issue appears on a non samsung device. It has to do with something about the download manager. They no longer allowe package installs through it and mentioned some new api. PackageInstaller, found this in appcenter issue browsing. |
If possible can you send me this issue? |
Are you having the same issue with the example project? |
Hi, i can't find the issue on github anymore and I lack the time to look into it right now. Best I can do is try the example project but I need to modify the minSdkVersion to 21 so i can run the analytics, but I will try the example as it is and let you know if it works or not. |
You don't need to update the example project. Just test if you can install something from appcenter. the example project is there so you don't need to add extra code. |
Ok, will let you know. |
Hey, i've got around to test the sample, it does work, and found my problem, I wrongly assumed its used to self-update an application, but turns out its meant to act as an application release manager, my apologies for wasting your time, but I thought it might work as a self-update on the same app. |
No problem. it can be used to self-update the app. But if you are distributing on the playstore there is no need to implement such a feature. This should only be used if you are distributing only on appcenter. |
I am not distributing on app store, its for an in-house application, but I couldn't get a hold on making it self-update, same as before the activity dies. |
And is it possible to install other applications? |
Only others, but not self-update |
Can you create a minimal project on your github that if I run it with my tokens I get your error. |
Hey, could you add support for android 10 ?
The text was updated successfully, but these errors were encountered: