To run the example project, clone the repo, and run pod install
from the Example directory first.
The Urban Airship Segment integration enables passive registration by default. This default setting allows Urban Airship push services to properly function when push registration occurs independently of the Urban Airship SDK.
Segment-UrbanAirship is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Segment-UrbanAirship"
Use the Urban Airship Integration:
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
[config use:[SEGUrbanAirshipIntegrationFactory instance]];
[SEGAnalytics setupWithConfiguration:config];
Urban Airship integration will listen to system authorization and registration events and register automatically when authorization is given.
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];
Urban Airship
Segment-UrbanAirship is available under Apache License, Version 2.0. See the LICENSE file for more info.