npm install @bebit-tech/omnisegment
In your MainApplication.java file, add the following import:
MainApplication.java
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:
AppDelegate.m
#import <OmniSegmentKit/OmniSegmentKit-Swift.h> @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //... [OmniSegment initialize: @"API-KEY" withTid: @"TID"]; // Add this line //... }
There was an error while loading. Please reload this page.