Last active
December 19, 2015 19:28
-
-
Save fomojola/6005823 to your computer and use it in GitHub Desktop.
Titanium Appcelerator Hipmob iOS URL Received Event Handling - Full example at https://github.com/Hipmob/hipmob-titanium-test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var on_url = function(e){ | |
var dialog = Ti.UI.createAlertDialog({ | |
message: 'URL Received ['+e.url+']!', | |
ok: 'OK', | |
title: 'Hipmob' }); | |
dialog.show(); | |
setTimeout(function(){ dialog.hide(); }, 5000); | |
}; | |
chatView.addEventListener(hipmob.EVENT_URL_RECEIVED, on_url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment