Book Image

Flash iOS Apps Cookbook

By : Christopher Caleb
Book Image

Flash iOS Apps Cookbook

By: Christopher Caleb

Overview of this book

The latest version of Flash Professional can directly target iOS, allowing Flash developers to write applications that will run natively on Apple's iPhone, iPad, and iPod touch. What's more, with Apple loosening its restrictions on third-party technologies, apps written in Flash can now be sold and distributed within the App Store.Flash iOS Apps Cookbook provides the recipes required to build native iOS apps using your existing knowledge of the Flash platform. Whether you want to create something new or simply convert an existing Flash project, the relevant steps and techniques will be covered, helping you achieve your goal.Learn how to configure and use Flash Professional for iOS development by writing and deploying a simple app to a device. Implement many iOS-specific features such a multi-touch, the virtual keyboard, camera support, screen orientation and the Retina display. Overcome the limitations of mobile development by mastering hardware acceleration and optimization. Whether you're an enthusiast or professional developer, the Flash iOS Apps Cookbook is your toolkit to creating high-quality content for iPhone, iPad and iPod touch.
Table of Contents (21 chapters)
Flash iOS Apps Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Registering a device


Any devices that you want to use for testing will have to be registered. Every iOS device has a Unique Device Identifier (UDID) that needs to be entered into the Provisioning Portal as part of the registration process.

We will learn in this recipe how to locate a device's UDID and add it to the Provisioning Portal.

Getting ready

A device's UDID can be obtained using iTunes.

iTunes typically comes installed on Mac OS X. Those using Windows, who don't already have iTunes, can download it from www.apple.com/itunes/download.

If you already have iTunes installed, then make sure that you have the latest version.

How to do it...

Follow the steps to register your device:

  1. Launch iTunes and connect your iOS device through USB. After a brief moment the device will appear within the DEVICES section in iTunes.

  2. Click on the device's name to display a summary.

  3. Here, you will find its 11-character serial number listed near the top of the screen. Click on the serial number to reveal the device's 40-character UDID, as you can see in the following screenshot. The UDID will replace the serial number that was shown in the following screenshot:

  4. Take a copy of the UDID by selecting Edit | Copy (Ctrl + C or Cmd + C) from iTunes' drop-down menu.

  5. Log into the iOS Dev Center at http://developer.apple.com/devcenter/ios and make your way to the Provisioning Portal.

  6. Move to the Devices section by clicking on the link on the left-hand side of the Portal's home page. Ensure that the Manage tab is selected. From this page, you will be able to manage the devices you would like to test with your apps.

  7. Click on the Add Devices button near the top-right corner of the page. You will be shown an Add Devices page where you can enter your device's UDID and also assign a name to it for identification purposes.

    Tip

    Testing with multiple devices

    If you are planning to test with several devices, then try to assign meaningful names to each to help distinguish them from one another. This will be of particular importance when working for organizations with large development teams.

  8. Add your device's UDID and enter a name for it. Once you are done, click on the Submit button near the bottom-right corner of the page. The page will refresh and as shown in the following screenshot, you will see your newly registered device listed on the screen:

  9. If you have additional iOS devices that you would like to use for testing then go ahead and add them now.

How it works...

Fundamentally, the provisioning process is there to allow you to test an app that you have written on a device that you own.

Registering devices on the Provisioning Portal is another step towards achieving that. If device registration wasn't required, then you could theoretically circumvent the App Store's distribution model by simply installing apps on an arbitrary number of devices.

Apple's restrictions are in place to not only guard its distribution model but to also protect your own development apps from falling into the wrong hands and being run on unauthorized devices.

There's more...

Registering devices is a fairly trivial process. However, there are a few other options and scenarios you should be aware of.

Adding devices in a team environment

When working in a team environment, only a Team Agent or Team Admin can add devices. Team Members do not have the required privileges to do this.

Editing device names

If you are unhappy with the identifier you assigned to a device, you can change it at a later date. Within the Provisioning Portal, simply move to the Devices section and find the device in the Current Registered Devices list. On the right-hand side within the Actions column, click on the Edit link for that device.

Device limit

You can only add a maximum of 100 devices per year to your Developer Program. Any devices you add and then later remove will still count towards that total, so think carefully when managing your list.

If at the end of the year you renew your iOS Developer Program, you will be able to reset your devices list before adding any additional devices. However, once you begin adding devices again, any device you choose to remove will once again count against your device limit.

UDID Sender

There is an app available from the App Store called UDID Sender that you may find useful. UDID Sender will extract your device's UDID and automatically populate it in an e-mail for you to send.

This can be particularly useful for large organizations where the Team Agent or Team Admin can expect a large number of device registration requests from Team Members.

To save the Team Admin from having to individually retrieve each device and discover its UDID from iTunes, they can simply rely on a Team Member e-mailing the device's ID directly to them.

UDID Sender can be downloaded from iTunes or the App Store and is free.