ArtSabintsev / Siren

Notify users when a new version of your app is available and prompt them to upgrade.

Home Page:http://sabintsev.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Close Alert programmatically

nickp4488 opened this issue · comments

Hello,
I use siren for app update notifying user.
I also use my own custom view if backend server flag enabled. I need to dismiss default siren alert when this custom view open/shown.

How can I dismiss siren alert programmatically?
Is this possible currently?

Thank you,

hello - unfortunately you cannot do this easily, since Siren does not pass back a reference. You could search the window hierarchy for it (probably), but it's not guaranteed to work.

Alternatively, you can always wait to call Siren until after you've done your server check and can guarantee that's succeeded.