-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
ruofan edited this page Mar 13, 2025
·
4 revisions
npm install @bebit-tech/omnisegment
In your MainApplication.java file, add the following import:
import com.bebittechreactnativeappsdk.OmniSegmentModule;
// ...
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
// ...
OmniSegmentModule.initialize(this, "API-KEY", "TID"); // Add this line
// ...
}<uses-permission android:name="android.permission.INTERNET"/>In your AppDelegate.m file, add the following import:
#import <OmniSegmentKit/OmniSegmentKit-Swift.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//...
[OmniSegment initialize: @"API-KEY" withTid: @"TID"]; // Add this line
//...
}