Book Image

Appcelerator Titanium Smartphone App Development Cookbook Second Edition

Book Image

Appcelerator Titanium Smartphone App Development Cookbook Second Edition

Overview of this book

This book will take you through the process of building cross-platform, native UI applications for the mobile from scratch. You will learn how to develop apps, how to use GPS, cameras and photos and how to build socially connected apps. You will also learn how to package them for submission to the App Store and Google Play. This cookbook takes a pragmatic approach to creating applications in JavaScript from putting together basic UIs, to handling events and implementation of third party services such as Twitter, Facebook and Push notifications. The book shows you how to integrate datasources and server APIs, and how to use local databases. The topics covered will guide you to use Appcelerator Studio tools for all the mobile features such as Geolocation, Accelerometer, animation and more. You’ll also learn about Alloy, the Appcelerator MVC framework for rapid app development, and how to transfer data between applications using URLSchemes, enabling other developers to access and launch specific parts of your app. Finally, you will learn how to register developer accounts and publish your very own applications on the App Store and Google Play.
Table of Contents (21 chapters)
Appcelerator Titanium Smartphone App Development Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


A URL scheme is a definition of how to handle and process particular kinds of URLs (or URIs) passed to it. The most common is http://, which we use every day, but there are also others, such as mailto:// and ftp://.

In native mobile apps, URL schemes can be used to allow one app to launch another app and pass data to it. This is incredibly useful if you want to share certain information between apps, such as a login token, or if you want to automate an app to do something such as posting a tweet for you.

Typically, a URL scheme will consist of a unique definition that, in most cases, reflects the name of the application. For example, on iOS and OS X, the tweetbot:// scheme will launch the Tweetbot client. Passing additional parameters to it will allow you to jump to a different view and even post a tweet.

A common way for developers to use URL schemes is by detecting whether a particular native app is installed and then launch it, instead of showing a web app. Google uses this...