Problem parsing package & OTA Update Failure: 400
See original GitHub issueIssue Description
Hi ! I have some problems implementing OTA update. I don’t think it’s a problem of link or file because I can manually install the app by downloading it. When I try to update my app (using the same code as the example you gave), this happens (permissions have been granted) :
D/FLUTTER OTA( 5335): OTA UPDATE ON LISTEN
D/FLUTTER OTA( 5335): OTA UPDATE ON STARTING DOWNLOAD
D/FLUTTER OTA( 5335): OTA UPDATE DOWNLOAD STARTED 4479
D/FLUTTER OTA( 5335): OTA UPDATE TRACK DOWNLOAD STARTED 4479
D/FLUTTER OTA( 5335): OTA UPDATE TRACK DOWNLOAD THREAD STARTED 4479
D/FLUTTER OTA( 5335): OTA UPDATE PENDING
D/FLUTTER OTA( 5335): OTA UPDATE FAILURE: 400
And then I have the “There was a problem parsing the package.” message on the screen. When I go to my download folder, there is no apk file. I tested with and without checksum, and with it I have the same results, minus the message on screen. If it can help, I’m using a Xiaomi Mi A2 (Android 10) for my tests.
Thank you !
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Could try to apply this solution? Looks like non-https is blocked by default in download manager.
I will add it to readme