I would like to open a new url in the default browser when the user clicks on an image. I have looked into the Titanium.Platform.openURL but don't know how to use it.
any help is appreciated
Ti.Platform.openURL("http://m.google.com"); //replace string lit with your url
You just pass the URL you want to open on the click event as the parameter to openUrl
make sure the link has "http://" in front or it won't do anything
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With