4Q-s-r-o / ota_update

Flutter plugin implementing OTA update for both iOS and Android
MIT License
182 stars 62 forks source link

App not installed #73

Closed avecost closed 2 years ago

avecost commented 2 years ago

using the latest ota_update, the update app has been downloaded successfully. I am encountering this error on the installation process.

MartinHlavna commented 2 years ago

Hello thanks for the report.

Can you share adb logcat from installation? It usually has the answer. It is unfortunate that android install does not provide reason for the user.

Some common reasons we have experienced so far:

  1. Google play protection - when you do not distribute your app via play store, play protection may interfere with installation. Solution is to either disable play protection (if you can), or you can submit your package for approval manually
  2. APK signature is different. This usually happens when you want to replace release build with debug build or vice versa.
  3. APK version (number after + version field) is lower than version already installed. Android will not allow downgrade