iOS Setup
CocoaPods Integration
The Zixflow React Native SDK integrates with the native iOS SDK via CocoaPods. If you’re using React Native 0.60 or higher, core dependencies are auto-linked.- Navigate to the iOS directory:
- Install CocoaPods dependencies:
- Open the workspace in Xcode:
Push Notification Setup (APNs)
- Add the APNs subspec in your
ios/Podfile(inside your app target), then runpod install:
zixflow-reactnative/fcm and use_frameworks! :linkage => :static — see Push Notifications.
-
Enable Push Notifications in Xcode:
- Select your app target → Signing & Capabilities
- Click + Capability → Push Notifications
-
Enable Background Modes:
- Add Background Modes
- Enable Remote notifications
-
Configure AppDelegate — call
FirebaseApp.configure()(FCM path) and register theZX_2BTNcategory for action buttons. Full pattern: Push Notifications and the example AppDelegate. Receive/display/tracking run in JS via Firebase Messaging + notifee. - Upload APNs credentials in the Zixflow dashboard.
Notification Service Extension (rich push)
To support rich push (images) and reliable delivery tracking on iOS, add a Notification Service Extension:-
File > New > Target > Notification Service Extension (e.g.
NotificationServiceExtension) - Add the rich-push pod for APNs:
zixflow-reactnative-richpush/fcm.
- Update
NotificationService.swift(canonical snippet — same as the push guide):
-
Run
pod installagain. -
Add matching App Groups on the host app and NSE, and pass the same
.appGroupId(...)fromAppDelegatepush init.
Location module (optional)
Android Setup
Gradle Configuration
The React Native auto-linking will handle most of the Android setup. However, you need to ensure the following:- Set minimum SDK version in
android/build.gradle:
- Add Maven repositories in
android/build.gradle:
Firebase Cloud Messaging Setup
To enable Firebase Cloud Messaging (FCM) for push notifications on Android:-
Add Firebase to your project:
- Go to Firebase Console
-
Add your Android app (package name must match
applicationIdinandroid/app/build.gradle) -
Download the client
google-services.jsonand place it inandroid/app/
Use the Firebase client config (
project_info+clientarray). Do not put a Firebase service-account JSON in the app. -
Add Google Services plugin in
android/build.gradle:
- Apply the plugin in
android/app/build.gradle:
- Configure push in
Zixflow.initialize(Android push module registers from JS init — unlike iOS, you do not initialize push in nativeApplicationcode for the recommended path):
- Request permission and identify (see Push Notifications):
Permissions
EnsurePOST_NOTIFICATIONS is available for Android 13+ (the SDK module declares it; your app still prompts at runtime via showPromptForPushNotifications).
Next steps
- Full push guide: Push Notifications
- Metrics: Push Notification Tracking
- Continue with Quick Start