Latest 1.2.0
Homepage https://github.com/urbanairship/ios-segment-integration
License Apache
Platforms ios 9.0, requires ARC
Dependencies Analytics, UrbanAirship-iOS-SDK
Authors

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Segment-UrbanAirship is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Segment-UrbanAirship"

Setup

Use the Urban Airship Integration:

SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];

[config use:[SEGUrbanAirshipIntegrationFactory instance]];

[SEGAnalytics setupWithConfiguration:config];

Enabling user notifications

Once the Urban Airship integration is ready, you can enable user notifications with the following:

[UAirship push].userPushNotificationsEnabled = YES;

To listen for when the Urban Airship integration is ready, listen for the io.segment.analytics.integration.did.start NSNotification event:

...

[[[NSNotificationCenter defaultCenter] addObserver:self
                                          selector:@selector(airshipReady)
                                              name:@"io.segment.analytics.integration.did.start"
                                            object:[SEGUrbanAirshipIntegrationFactory instance].key];

Author

Urban Airship

License

Segment-UrbanAirship is available under Apache License, Version 2.0. See the LICENSE file for more info.

Latest podspec

{
    "name": "Segment-UrbanAirship",
    "documentation_url": "https://github.com/urbanairship/ios-segment-integration",
    "version": "1.2.0",
    "license": "Apache",
    "summary": "Urban Airship Integration for Segment's analytics-ios library.",
    "homepage": "https://github.com/urbanairship/ios-segment-integration",
    "authors": {
        "Urban Airship": "[email protected]"
    },
    "source": {
        "git": "https://github.com/urbanairship/ios-segment-integration.git",
        "tag": "1.2.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "dependencies": {
        "Analytics": [
            "~> 3.0.0"
        ],
        "UrbanAirship-iOS-SDK": [
            "~> 9.1"
        ]
    }
}

Pin It on Pinterest

Share This