React Native - IOS specific configuration
React Native - IOS specific configuration
React Native - IOS specific configuration
To enable push notifications for iOS, you need to configure specific capabilities and handle the necessary app delegate code. Let’s walk through these steps.
Run pod install in the ios folder of your React Native application to install/update the pod dependencies.
Open your React Native project in Xcode.
Inside the Targets section, select your app target, and go to Signing & Capabilities.
Click on + Capability and add Push Notifications and Background Modes capabilities.

In Background Modes, select the Remote Notifications option. This is required to receive background push notifications. Learn more about background notifications here.
To handle push notifications in your iOS app, add the following code to the AppDelegate file:
To ensure rich push notifications and proper handling of incoming messages, add a Notification Service Extension to your iOS project:
Notification Service Extension from the template list.

Replace the contents of the generated NotificationService file with the following code:
In order for the Notification Service Extension to be able to access fyno, you will have to import it by following the below steps:
Frameworks and Libraries, click on the + button.

