You'll need an ad-hoc provisioning profile in order to send push
messages.
If you already have an ad-hoc provisioning profile configured to use your push
enabled App ID, you can skip this section.
-
Log in to your Apple developer account.
-
In the iOS Apps menu, click Provisioning
Profiles.
-
Click + to add a new profile.
-
Under Distribution, select Ad
Hoc.
-
Select the App ID that you've enabled for push. Click
Continue.
-
Select your Distribution Certificate and click
Continue.
-
Select the devices you would like to have access to this provisioning profile
and click Continue.
-
Give the profile a descriptive name, such as My App (Ad-hoc) and click
Generate.
-
Click Download. After the download is complete,
double-click the .mobileprovision file to install it.