Setting the title of AirDrop shares under iOS 7

In iOS 7, Apple introduced AirDrop, a way of sharing files and links between nearby devices using a combination of Bluetooth and Wi-Fi. They also updated UIActivityViewController to allow sharing over AirDrop from your own native application as well.

If you’re sharing images, or simple web links, you’ll get the behavior for free just by compiling against the new iOS SDK, but if you want to share deep links into your native application you have to do a little more work. When we added AirDrop to version 3.0 of the Eventbrite iPhone app we ran into a problem. We wanted to be able to share events from one phone to another using our custom URI scheme. It’s very easy for the app to select an appropriate URL to share based on the sharing method, so that Twitter, for instance, will get an HTTP URL but sharing via AirDrop sends the custom Eventbrite URL. Unfortunately, that ends up not looking so pretty:

share_url

Continue reading “Setting the title of AirDrop shares under iOS 7”