sp-react-native-in-app-updates icon indicating copy to clipboard operation
sp-react-native-in-app-updates copied to clipboard

Not getting any event on the click of no thanks button

Open irfan102 opened this issue 3 years ago • 4 comments

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.

irfan102 avatar May 07 '21 05:05 irfan102

@SudoPlz please can you please explain how to achieve this behaviour ?

irfan102 avatar May 26 '21 06:05 irfan102

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 avatar May 26 '21 19:05 SudoPlz

@SudoPlz sure, ill let you know how i figured it out.

irfan102 avatar May 27 '21 04:05 irfan102

@irfan102 does this library works for you? Please let me know how u make it work. I can't even see update popup

shubhamdeol avatar Jul 17 '21 06:07 shubhamdeol