0.9.0 • Published 5 years ago

mparticle-cordova-plugin v0.9.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

mparticle-cordova-plugin

Cordova plugin for MParticle iOS and Android SDK

MParticle provides their own version of the cordova plugin (https://github.com/mParticle/cordova-plugin-mparticle). However, the MParticle version requires CocoaPods for iOS and hand coding. This version of the plugin extends the MParticle version and eliminates the limitation.

This version of the plugin uses versions 7.8.1 (iOS) and 5.7.0 (Android) of the Segment mobile SDK. You can view Android and iOS SDK sources on Github.

https://github.com/mParticle/mparticle-android-sdk https://github.com/mParticle/mparticle-apple-sdk

Prerequisites:

  • MParticle API key and API secret

Installing

You can install the latest version of the plugin directly from git through the Cordova CLI:

cordova plugin add https://github.com/jamesyoon11/mparticle-cordova-plugin.git

Initial SDK

In your config.xml, add a preference element under the platform element that contains your API key and secret:

<platform name="android">
    <preference name="com.mparticle.android.key" value="ANDROID_API_KEY" />
    <preference name="ccom.mparticle.android.secret" value="ANDROID_API_SECRET" />
</platform>
<platform name="ios">
    <preference name="com.mparticle.ios.key" value="IOS_API_KEY" />
    <preference name="ccom.mparticle.ios.secret" value="IOS_API_SECRET" />
</platform>

Track API : Please refer https://github.com/mParticle/cordova-plugin-mparticle