Skip to content

bidchatinc/cordova-plugin-segment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-segment

Cordova plugin for Segment Analytics.

Supports Segment's iOS and Android SDKs.

Usage

Implements (mostly) the same API interface on window.analytics as Analytics.js.

Segment Write Keys

In config.xml, you can put the following preferences:

  • <preference name="analytics_write_key" value="{Segment write key}" />
  • <preference name="analytics_debug_write_key" value="{Segment write key}" />

iOS Integrations Setup

Use CocoaPods: The default plugin configuration does not bundle any Segment integrations or core analytics SDKs. To add more your custom integrations, create a Podfile file in your iOS platform root directory and add your segment integration dependencies. See the iOS Quickstart for examples.

Android Integrations Setup

Use Gradle: By default, the plugin builds with the analytics-core SDK for Android. To add more your custom integrations, create a build-extras.gradle file in your Android platform root directory and add your segment integration dependencies. See the Android Custom Build Docs for examples.

Changes to make it work with Cordova

Statically included Segment iOS SDK 3.2.2 with the following changes:

  • SEGLocation.m
    • typeof -> __typeof
    • for the Cordova version of Clang

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 91.3%
  • Java 7.2%
  • JavaScript 1.5%