Getting serial number of ipad programmatically

Discussion in 'iPad' started by atulgaur, Sep 27, 2011.

  1. atulgaur macrumors newbie

    Joined:
    Sep 27, 2011
    #1
    i want my application to run only on a specified ipad.
    How can i identify the particular ipad?

    I found that every ipad has its own serial number.

    Is it possible to get the ipad serial programmatically and allow it to run the application?
     
  2. thewitt macrumors 68020

    thewitt

    Joined:
    Sep 13, 2011
    #2
    What you want is called the UDID however the call to return this has been deprecated and Apple may remove it if we all don't complain...

    -t
     
  3. Comeagain? macrumors 68020

    Comeagain?

    Joined:
    Feb 17, 2011
    Location:
    Spokane, WA
    #3
    Can I ask why you want to limit it like that?
     
  4. psonice macrumors 6502a

    Joined:
    Jul 22, 2005
    #4
    You're asking the wrong question. An app that only runs on a single device won't be allowed on the app store, and if it's not authorised by apple for the store the iPad won't be able to run it.

    What you should be asking I think is this:

    How do I use Ad Hoc distribution, and digitally sign my app for use on a specific device?

    Ask the user for the UDID number (easiest is to use one of the many apps that email it automatically). Then create a provisioning profile specifically for that device, and sign your app with it. Give the app and the profile to the user, and you're done.
     

Share This Page