Skip to content
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

installApk Fails When Run From a Background Isolate #1

Open
ImranR98 opened this issue Sep 24, 2022 · 0 comments
Open

installApk Fails When Run From a Background Isolate #1

ImranR98 opened this issue Sep 24, 2022 · 0 comments

Comments

@ImranR98
Copy link

Hi, thanks so much for working on this plugin.
I'm getting the following error when running AppInstaller.installApk from a background process (using WorkManager):

PlatformException (PlatformException(installApkBytes, Couldn't install package, null, null))

Call stack:

StandardMethodCodec.decodeEnvelope (/home/imranr/flutter/packages/flutter/lib/src/services/message_codecs.dart:653)
MethodChannel._invokeMethod (/home/imranr/flutter/packages/flutter/lib/src/services/platform_channel.dart:315)
<asynchronous gap> (Unknown Source:0)

It's weird because it works fine in the main foreground process. I thought it might be related to this issue (flutter/flutter#13937) but it seems the fixes for that have already been merged. I even tried using it with the flutter_isolate plugin, no luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant