microsoft / appcenter-sdk-android

Development repository for the App Center SDK for Android
Other
276 stars 134 forks source link

Callback for manually checkUpdate #1664

Closed bqliang closed 1 year ago

bqliang commented 1 year ago

Is there any way to set a callback for manually checkUpdate separately? like Distribute.checkForUpdate(checkUpdateListener) When the user manually checks for updates but no release available, I want to pop up a toast to remind the user. I can only set callbacks for global check updates now like Distribute.setListener(DistributeListener), This is not what I want, because every time start the activity, the automatic update will run, and then the toast will pop up.

aleksandr-dorofeev commented 1 year ago

Hello @bqliang, Thanks for getting in touch with us! The expected behavior is the update notification on clicking the corresponding button? Could you clarify this point?

bqliang commented 1 year ago

Hello @bqliang, Thanks for getting in touch with us! The expected behavior is the update notification on clicking the corresponding button? Could you clarify this point?

aleksandr-dorofeev commented 1 year ago

Unfortunately, AppCenter SDK does not have such API. However, this can be easily achieved on the app side, with using an additional flag or so. Unfortunately, at this moment I can't say that this feature will be picked up any soon due to it specific use case, so I'm closing this issue. Let's see if anyone else is interested in it.