1.6.0 • Published 1 month ago

emma-react-native-sdk v1.6.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

EMMA React Native SDK

Minimal Setup

Use EMMA SDK to register and gather information about installations, sessions, communications, and many other events.

Add it to your project

yarn add emma-react-native-sdk

or

npm install emma-react-native-sdk

Use it from your React Native application

import React, { Component } from 'react';
import EmmaSdk from 'emma-react-native-sdk';

EmmaSdk.startSession(
  {
    sessionKey: 'EXAMPLE_EMMA_SESSION_KEY',
    isDebug: false, // Optional, default: false
    queueTime: 10, // Optional, default: 10
    customPowlinkDomains: ['example.com'], // Optional, default: []
    customShortPowlinkDomains: ['ex.co'], // Optional, default: []
    trackScreenEvents: true, // Optional, default: false
  },
  () => {
    console.log('Got it!');
  },
  (error) => {
    console.error('Oh, oh!', error);
  }
);

Read the example application source code for further information and useful tips. Also, TypeScript types will guide you through the implementation, with SDK's methods and their params.

Example

Read, build and try EmmaReactNativeExample application. It covers the main interactions with EMMA SDK.

For example, to launch the iOS version:

cd EmmaReactNativeExample
npm run cache:clear
npm install
cd ios
pod install
cd ..
npm run ios

Refer to the React Native documentation for further information.

Relevant Notes

  • Session has to be started before any other method is called.
  • Banner communication format is only supported on Android devices.

Documentation and further information

Use EMMA SDK everywhere

Native

Cross-platform

1.6.0

1 month ago

1.5.1

4 months ago

1.5.0

10 months ago

1.4.2

12 months ago

1.4.1

1 year ago

1.4.0

1 year ago

1.4.0-beta.4

1 year ago

1.4.0-beta.3

1 year ago

1.4.0-beta.2

1 year ago

1.4.0-beta.1

1 year ago

1.4.0-rc.1

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

3 years ago

1.0.0

3 years ago