Skip to content

Commit

Permalink
using forked package
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-aman committed Nov 10, 2023
1 parent 9228c6c commit 32b09c8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/CustomerioTracking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { Region } from './CustomerioEnum';
import { CustomerIOInAppMessaging } from './CustomerIOInAppMessaging';
import { CustomerIOPushMessaging } from './CustomerIOPushMessaging';
import type { PushPermissionStatus, PushPermissionOptions } from './types';
import { createClient } from '@customerio/analytics-react-native';

var pjson = require('customerio-reactnative/package.json');

const LINKING_ERROR =
Expand Down Expand Up @@ -65,8 +67,19 @@ class CustomerIO {
);
}
}

CustomerioReactnative.initialize(env, config, packageConfig);
console.log("Initialising using Segment")
const writeKey = "c5f95d813d7a1fc460db"//`${env.apiKey}:${env.apiKey}`;
console.log(writeKey)
const segmentClient = createClient({
writeKey: writeKey,
debug: true,
proxy: "https://cdp.customer.io/v1/b",
cdnProxy: "https://cdp.customer.io/v1/projects",
trackAppLifecycleEvents: true
});
segmentClient.identify("[email protected]", {"firstName": "cdp tester on react native"});
segmentClient.track('Awesome event');
// CustomerioReactnative.initialize(env, config, packageConfig);
}

/**
Expand Down

0 comments on commit 32b09c8

Please sign in to comment.