Skip to content

Instantly share code, notes, and snippets.

@crow
Last active November 21, 2019 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crow/0d4701fe42a283ff83a8a833e9f0d991 to your computer and use it in GitHub Desktop.
Save crow/0d4701fe42a283ff83a8a833e9f0d991 to your computer and use it in GitHub Desktop.
<script>
document.addEventListener("ualibraryready", function(){
console.log("Resolution event example.");
});
</script>
<h1>Hi there, once more with feeling.</h1>
<button onclick="UAirship.dismiss({
'type' : 'button_click',
'button_info' : {
'id' : 'button identifier',
'label' : {'text' : 'foo'},
'actions' : {
'open_external_url_action' : 'https://airship.com'
}
}
});">button click</button>
<h2 onclick="UAirship.dismiss({'type' : 'button_click', 'button_info' : {'label' : {'text' : 'foo'}, 'id' : 'bar'}});">button click</h1>
<h2 onclick="UAirship.dismiss({'type' : 'button_click', 'button_info' : {'label' : {'text' : 'foo'}, 'id' : 'bar'}});">button click</h1>
<h2 onclick="UAirship.dismiss({'type' : 'message_click'});">message click</h2>
<h2 onclick="UAirship.dismiss({'type' : 'user_dismissed'});">user dismissed</h2>
<h2 onclick="UAirship.dismiss({'type' : 'timed_out'});">timed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment