Data Integrations and Customization

Ticketmaster Integration

Rover includes support for integrating with the Ticketmaster Presence SDK. This will allow your team to surface some Ticketmaster information within the Rover Audience and Campaigns tools.

The integration is indirect; you integrate both the Presence SDK and the Rover SDK into your app, and write a little bit of glue code.


Installing the Module

iOS

First, be sure that the "RoverTicketmaster" package product module has been selected from the SwiftPM package (review the Install page for details).

Then you need to configure a PresenceLoginDelegate in your view controller hosting the Presence SDK (as described in the Presence SDK documentation), and then from there you'll call methods on Rover's TicketmasterAuthorizer object to keep Rover up to date on Ticketmaster logins.

First, set the user's Ticketmaster credentials into Rover after a successful sign-in with the Presence SDK. Implement the onMemberUpdated(backendName:member:) method in the delegate and call setTicketmasterID method and passing in the user's TM ID from the PresenceMember.

extension MyViewController: PresenceLoginDelegate {
    func onMemberUpdated(backendName: PresenceLogin.BackendName, member: PresenceMember) {
        Rover.shared.ticketmasterAuthorizer.setTicketmasterID(
            id: member.localId
        )
    }
}

Then clear the user's Ticketmaster credentials after a successful sign-out with the Presence SDK. Implement the onLogoutAllSuccessful() method in the delegate and call the clearCredentials method.

extension MyViewController: PresenceLoginDelegate {
    func onLogoutAllSuccessful() {
        Rover.shared.ticketmasterAuthorizer.clearCredentials()
    }
}

Android

Add the Rover Ticketmaster module to your Gradle dependencies:

implementation "io.rover.sdk:ticketmaster:4.0.0"

Initialize the TicketmasterAssembler:

Rover.initialize(
    ...,
    TicketmasterAssembler(),
    ...
)

Then you need to implement and configure a PresenceLoginListener in an Activity (as described in the Presence SDK documentation), and then from there use methods on Rover's TicketmasterAuthorizer object to keep Rover up to date on Ticketmaster logins.

First, set the user's Ticketmaster credentials into Rover after a successful sign-in with the Presence SDK. Implement the onMemberUpdated(backendName: TMLoginApi.BackendName, memberInfo: TMLoginApi.MemberInfo?) method and call the setTicketmasterId method passing in the user's TM ID from the MemberInfo object.

override fun onMemberUpdated(backendName: TMLoginApi.BackendName, memberInfo: TMLoginApi.MemberInfo?) {
    Rover.shared.ticketmasterAuthorizer.setTicketmasterId(
        memberInfo?.localId
    )
}

Then clear the user's Ticketmaster credentials after a successful sign-out with the Presence SDK. Implement the onLogoutSuccessful() method and call the clearCredentials method.

override fun onLogoutSuccessful(backendName: TMLoginApi.BackendName) {
    Rover.shared.ticketmasterAuthorizer.clearCredentials()
}
Previous
Third-party Analytics