To set up push notifications for iOS devices, you must
use the Apple Push Notification Service (APNs). To use APNs, you must
be a registered Apple iOS Developer and obtain an APNs certificate
for your application.
Before you begin
Ensure that the following servers are accessible from
IBM MobileFirst™ Platform Foundation:
- Sandbox servers:
- gateway.sandbox.push.apple.com:2195
- feedback.sandbox.push.apple.com:2196
- Production servers:
- gateway.push.apple.com:2195
- feedback.push.apple.com:2196
Procedure
- Follow the required steps to obtain your APNs certificate
and password. For more information, see the developerWorks® article Understanding and setting up artifacts required to
use iOS devices and APNS in a development environment.
- You can set the certificates using any of the following
methods:
- Install the Entrust CA root certificate by using SSL port
443.
While you work in development mode, rename your
certificate file to
apns-certificate-sandbox.p12.
When you move to production, rename your certificate file to
apns-certificate-production.p12.
In both cases, place the certificate file in the environment root
folder or in the application root folder. When the hybrid application
has both iPhone and iPad environments, separate certificates are necessary
for push notification. In that case, place those certificates in the
corresponding environment folders.
Note: The environment root folder
takes the highest priority.
Results
Your push notification setup is now complete.