0.0.8 • Published 6 years ago

kahuna-react-native-bridge v0.0.8

Weekly downloads
25
License
-
Repository
-
Last release
6 years ago

kahuna-react-native-bridge

Getting started

$ npm install kahuna-react-native-bridge

Installation

$ react-native link kahuna-react-native-bridge

Including Kahuna SDK

iOS

CocoaPods

Please use Cocoapods to link to the native SDK. Add the following to your Podfile

pod 'Kahuna', '~> 2.5.11'

Manual Linking

Download the Kahuna SDK from

https://storage.googleapis.com/kahuna-mobile-public/kahuna_iossdk_2.5.11.zip

Put the contents of the zip file into your iOS project folder. Within your iOS project, add the Kahuna.framework to the project's Build Phases tab, under the Link Binary with Libraries.

After that, find the KahunaReactNative project and go to it's Build Settings tab and put the following into the Framework Search Path option:

$(PROJECT_DIR)/../../../ios/YOUR_IOS_PROJECT_DIRECTORY/PATH_TO_KAHUNA_FRAMEWORK

This points the KahunaReactNative project to the location of the Kahuna.framework file you manually included.

Android

Add the following to the bottom of the App build.gradle file

apply plugin: 'com.google.gms.google-services'

Place your Firebase project's google-services.json file in the app directory of your Android project

In your projects build.gradle file, add the Kahuna SDK repo to your repositories tag

maven { url "https://kahuna.github.io/kahuna-android/sdk" }

Usage

Initialize Kahuna.

Because the Kahuna SDKs handle events that occur at startup time, we recommend initializing the Kahuna SDKs from the native side, to ensure the initialization as early in the startup process as possible.

iOS

We recommend that you enable the Deep Integration feature of the Kahuna iOS SDK, unless you want to implement your own push related delegate methods.

[Kahuna setDeepIntegrationMode: YES ];

In your Application Delegate class, initialize the Kahuna iOS SDK by calling

[Kahuna launchWithKey: KAHUNA_SECRET_KEY ];

Android

In your main application class, add the following in the onCreate method

Kahuna.getInstance().onAppCreate(this, KAHUNA_SECRET_KEY, FIREBASE_PROJECT_ID);
0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago