Configure React Native for iOS

After installing React Native unified plugin packages, complete iOS setup.

Install Pods 

From your app’s ios directory, install CocoaPods dependencies.

pod install
1cd ios && pod install

Configure APNs 

Set up APNs in your Apple Developer account and upload credentials to your MobilePush (Marketing Cloud Engagement) administration configuration.

You can use either:

  • APNs authentication key (.p8)
  • APNs certificate (.p12)

Configure SDK in App Startup 

Configure the SDK in your AppDelegate.swift using the multi-module ConfigBuilder pattern.

For detailed SDK configurations, see Configure iOS SDK.

Enable Push Capabilities 

In Xcode, enable:

  • Push Notifications
  • Background Modes with Remote Notifications

For more information, see Enable Push Notifications.