Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what kind of certificate do I need to test apns using ad-hoc distribution?

I can't understand from Apple's docs if I need a production certificate or a development certificate...

like image 723
David Faitelson Avatar asked Dec 11 '09 17:12

David Faitelson


People also ask

What is adhoc certificate in iOS?

The Ad-Hoc certificate allows you to build your app to run on a predetermined list of devices. There are a couple big caveats though: You need the UDID of every device you want the app to run on. The user needs to install the provisioning profile for the app as well as the device manually.

What is the difference between development adhoc distribution?

1. Development: - Used in development phase of the app to run the app on simulator and developer devices. (If a developer device is not in this list the in-development app can not be installed). 2. Ad Hoc: - Is provided to distribute the app to a known finite set of iOS devices outside the AppStore.


2 Answers

You need to create a Distribution Certificate. The Distribution Certificate are used for creating Distribution Provisioning Profiles. Which will allow you to do the following:

  1. Create an Ad-Hoc version of your app (this is used if you want to distribute to beta-users, testers, etc (this is what you want))
  2. Create an App Store version of your app (You'll do this once you're ready to submit it to the App Store)

Below are the Apple steps on how to create an Ad-Hoc version of an app

Ad Hoc distribution allows you to share your application with up to 100 iPhone or iPod touch users, and to distribute your application through email or by posting it to a web site or server. To prepare your application, the following steps will need to be completed.

  1. Create and Download an iPhone Distribution Certificate
  2. Create and Download an Ad Hoc Distribution Provisioning Profile
  3. Build your application with Xcode
  4. Share your application file and the Ad Hoc Distribution Provisioning Profile with the owner of each device
  5. Recipients of the application will need to drag the application file and Ad Hoc Distribution Provisioning Profile into iTunes, then sync their iPhone to iTunes to install

Hope this information points you in the right direction. If you need additional details or walkthroughs just let me know.

like image 114
Tammen Bruccoleri Avatar answered Oct 09 '22 08:10

Tammen Bruccoleri


The SSL certificate you need is for production when you're building with a distribution provisioning profile. As far as push (apns) is concerned, ad hoc == app store. This is quite helpful, as you can test how push will work in the app store build by building an ad hoc app and using the production certificate.

like image 29
robotadam Avatar answered Oct 09 '22 08:10

robotadam