AppUpdate icon indicating copy to clipboard operation
AppUpdate copied to clipboard

No latest version available to download

Open AhmerAfzal1 opened this issue 7 years ago • 4 comments

How I can show Toast message that "Currently no new latest version available to download" using this great library? This will happen when user click Button to check for new update. Is there any method for it?

AhmerAfzal1 avatar Sep 16 '17 07:09 AhmerAfzal1

you can show toast in callback method onError or onResult in UpdateResultCallback , when server has no new latest version available to download ,you can check onResult's param,compare version_code to hint toast message,besides you can check onError's params,we'll get an exception named UpdateException if some exception happen,UpdateConst has four status for checking update.

Leo0618 avatar Sep 18 '17 01:09 Leo0618

Thank You!

AhmerAfzal1 avatar Sep 20 '17 05:09 AhmerAfzal1

I'm unable to do it, can you implement it in your sample code? Thanks in advance

AhmerAfzal1 avatar Sep 22 '17 07:09 AhmerAfzal1

@ahmerafzal1 I write a test method, and don't know if it can solve your problem,you can see MainActivity.

for contacting me timely, you can send me email (email: [email protected])

Leo0618 avatar Sep 27 '17 07:09 Leo0618