4Q-s-r-o / ota_update

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

While downloading the APK file, the download is stopped. #71

Closed JeongEEE closed 2 years ago

JeongEEE commented 2 years ago

Hello!

An issue occurred while using this plugin. While downloading the APK file, the download is stopped. I've tested it several times and it keeps happening.

ota_update: ^4.0.1

Flutter version: 2.6.0-12.0.pre.459

This is my code.

   OtaUpdate()
        .execute(
        fileDownloadUrl,
        destinationFilename: fileName,
      ).listen(
        (OtaEvent event) {
          setState(() {
            currentEvent = event;
            currentStatus = '${currentEvent.status} : ${currentEvent.value}';
            print(currentStatus);
          });
        },
      );

This is print message.

....
OtaStatus.DOWNLOADING : 94
OtaStatus.DOWNLOADING : 94
OtaStatus.DOWNLOADING : 94
OtaStatus.DOWNLOADING : 94
OtaStatus.DOWNLOADING : 94

Can't proceed any further. How do I solve it?

MartinHlavna commented 2 years ago

Hello,

does it happen always, or it appears every now and then?