4.x -> 5.0.0
UpdatedThere's a new version available!
These pages cover version 5 of our SDK, but a newer version is available. In general, we suggest that you update to the latest version to take advantage of new features and fixes.
- Are you new to our SDKs? Check out the latest docs.
- Otherwise, learn about updating to the latest version
Version 5.x of the Customer.io React Native SDK introduces Firebase wrapper support for FCM users that improves Firebase compatibility and simplifies push notification setup.
What changed?
Version 5.x introduces a Firebase wrapper that improves compatibility with Firebase Cloud Messaging (FCM) and other Firebase services in your app.
Do you need to update to this version?
You need to update to this version if you use FCM (Firebase Cloud Messaging) for push notifications
Update process
Add the CioFirebaseWrapper import to your Swift files that use CioMessagingPushFCM.
Add the Firebase wrapper import to your AppDelegate.swift file:
import UIKit
import CioMessagingPushFCM
import CioFirebaseWrapper // Add this import for FCM users
import UserNotifications
import Firebase
import FirebaseMessaging
@main
class AppDelegateWithCioIntegration: CioAppDelegateWrapper<AppDelegate> {}Troubleshooting
If you see build errors related to Firebase after upgrading:
- Clean your build: Run
cd ios && pod install && cd ..then rebuild - Check imports: Ensure you’ve added
import CioFirebaseWrapperto all files that importCioMessagingPushFCM
