As a developer, I want to be able to consume customerio-reactnative package in my application without any error. I want to update the native module to initialize and configure the SDK using Datapipeline so that I can ensure seamless integration and configuration of the SDK with the latest data pipeline functionalities using iOS SDK.
Solution
Updated podspec to use CioDataPipeline and remove CioTracking module
customerio-reactnative.podspec now uses CioDataPipeline and no longer uses CioTracking
Updated Native modules to use DataPipeline
Native module code has been updated to use CioDataPipeline and removes CioTracking where ever used
Configuration update
With data ppiline module, updated configurations have been used
Removed deprecated/outdated code
Removed the old tracking module references and any associated code that is no longer necessary with the use of the DataPipeline module.
Updated package.json
To help the customer use specific & strict iOS SDK version, we use cioNativeiOSSdkVersion attribute in package's package.json file. This has been updated to use latest iOS SDK version i.e. 3.3.3 providing CDP support.
TODOs have been added
Todo(s) have been added to respective files wherever necessary, to be removed later when respective features are implemented
Sample app updates
Sample app has been updated (FCM for now, as APN is failing to build for all devs. Need to fix this in another PR)
Testing and Validation
Completed development testing with no additional test steps required, as this update is focused solely on the initialization of the SDK. Added identify code to further test the feature, confirming that it works as expected.
Steps:
Launch React native FCM sample app
Identify a user either by creating a new one or by randomly generating one
Linear ticket : https://linear.app/customerio/issue/MBL-446/[ios]-update-native-module-to-initialize-and-configure-sdk-using
Problem
As a developer, I want to be able to consume
customerio-reactnative
package in my application without any error. I want to update the native module to initialize and configure the SDK using Datapipeline so that I can ensure seamless integration and configuration of the SDK with the latest data pipeline functionalities using iOS SDK.Solution
CioDataPipeline
and removeCioTracking
modulecustomerio-reactnative.podspec
now usesCioDataPipeline
and no longer usesCioTracking
CioTracking
where ever usedpackage.json
To help the customer use specific & strict iOS SDK version, we usecioNativeiOSSdkVersion
attribute in package'spackage.json
file. This has been updated to use latest iOS SDK version i.e.3.3.3
providing CDP support.Testing and Validation
Completed development testing with no additional test steps required, as this update is focused solely on the initialization of the SDK. Added identify code to further test the feature, confirming that it works as expected. Steps:
Test user created - https://fly.customer.io/workspaces/122175/journeys/people/bfba070080048104