Talk from TiConf US where I talk about implementing URL Schemes in your apps to allow two-way, inter-app communication and transferring of data and binary files.
Launch / Resume Apps • Send commands/data to apps • Receive data/callbacks from apps The same thing we do every night, Pinky - try to take over the URL! Saturday, 29 June 13
• twitter:// • bufferapp:// • linkedin:// • pinterest:// • googlegmail:// Enter into the browser to test • http://wiki.akosma.com/IPhone_URL_Schemes Useful links • http://canhandleUrl.com Saturday, 29 June 13
URL Scheme for an App • Add events and handling code to read url • Add code to parse URLs • Add actions, responses, callbacks • Let people know about it (if public) Saturday, 29 June 13
start and resume events if (Ti.App.getArguments().url) { urlToObject(Ti.App.getArguments().url); } http://tinyurl.com/urlschemecode Saturday, 29 June 13
= Ti.Android.currentActivity; var data = activity.getIntent().getData(); if (data) { urlToObject(data); } http://tinyurl.com/urlschemecode Saturday, 29 June 13
developers • Resources available to find out Schemes / Actions • Shorten, handle failures, desktop access • You can send more than text! Saturday, 29 June 13