Open antonxandre opened 1 year ago
Upon inspecting the source code, I noticed that the onLater method is invoked when the user chooses this option.
It's exactly what you found out.onLater
is called when the user taps "Update Later", but only if you provided that function to your Upgrader
instance. So you're responsible for what happens in that function.
Tapping the LATER button just closes the alert allowing the alert to be displayed sometime in the future. Tapping IGNORE prevents the alert from being displayed again for that version. The onLater callback provides a method to do some processing after that button is tapped.
Hello,
I am using this library in my project and I have an additional question about the behavior of the alert dialog when the user selects the "Update Later" option.
Upon inspecting the source code, I noticed that the onLater method is invoked when the user chooses this option. However, I couldn't find clear information about what exactly happens when this option is selected. I would like to better understand the expected behavior in this case.
My questions are as follows:
When the user selects "Update Later," what happens behind the scenes? Is the alert simply dismissed and no other events are triggered? Is there any internal mechanism to track the number of times the user selects this option? Or is it the responsibility of the developer to implement additional logic if needed? Thank you again for your attention and assistance in clarifying these additional questions.
Best regards, Antonio.