Open irfan102 opened 3 years ago
@SudoPlz please can you please explain how to achieve this behaviour ?
Hey @irfan102 apologies for the late response.
Not sure, I don't remember trying that out, but I feel that checkNeedsUpdate
would throw on cancel (I'm not sure though).
The reason I believe that is because we do have an addOnFailureListener
listener here:
https://github.com/SudoPlz/sp-react-native-in-app-updates/blob/master/android/src/main/java/com/sudoplz/rninappupdates/SpReactNativeInAppUpdatesModule.java#L95-L97
I have to investigate further though, apologies for not being very helpful but we have to dive into the official in-app-updates android documentation to figure out how this is done.
A PR would be most welcome if you feel like experimenting.
Thank you.
@SudoPlz sure, ill let you know how i figured it out.
@irfan102 does this library works for you? Please let me know how u make it work. I can't even see update popup
I tried looking into the documentation and also in code but could not find an event that is produced when no thanks is clicked. Originally the cancel event should trigger but it is triggered on the click of cancel button that appears on the tray. Please guide as to how to get the event on no thanks.