kolbasa/cordova-plugin-apkupdater

After Installing Warning

Closed this issue · 14 comments

After installation a message is asking if to quit or Open the App, but choosing Open is not producing any action.

On which device(emulator?), with which Android version does this happen?

  • Xiaomi 10 lite - Android 11
  • and Samsung J5 Prime - Android 8.0.0

Android Versions?

Edit: Ok, you added the versions.

And this also happens with the Samsung device?

WIth Samsung the screen of the installation overlaps the screen of the App and the message is not even shown. The App just quits

Ok, thanks for the tip. I'll see what I can do.
I'll definitely have to check that out. 👍

thanks to you, i will be glad to test on my devices

So far, I have not been able to reproduce the behavior here. I also fear that there is nothing I can do here. The actual installation is managed by Android.
However, the update should still install in that case. Only the restart of the app fails.

The issue is reopened. I can reproduce it now after all and am already working on a solution.

Here you can see some progress. The plugin can skip the dialog completely and start the app without having to press "Open".

Dialog

Hi
is it already possible to test the update?

No, not yet. For this to work a permission must be requested from the user (MANAGE_OVERLAY_PERMISSION).
For the example I have set the permission manually.
So I still need to build the function to request it. I need one more day.

Okay, I'm an idiot. I've been looking for a way to trick Android for hours now. And now I realize that it was just a little bug in my installation logic.
The bug is now fixed on the master branch and can already be tested with the demo.
I will create a release version soon.

if you are an idiot i'd like to be idiot too...
i'm looking forward to test the update of the updater ;)

See release: 1.2.4. You are welcome to reopen the issue if it still doesn't work.