- Print
- DarkLight
Android Tickets SDK Application Integration Demo
An example integration of the TicketmasterTickets framework is available for download:
https://github.com/ticketmaster/Android-TicketsDemoApp
Demo App Screenshots
Getting Started
- Open Android-TicketsDemoApp in Android Studio
- This will also download all the required libraries
- Update
local.properties
with your own API key- available from https://developer.ticketmaster.com/explore/
- Update your Team Name and colors:
config.consumer_key="consumer_key"
config.team_name="team_name"
config.branding_color="#color"
- For Modern Accounts Login
- Open the
Android Manifest.xml
and add the followingModernAccountsLoginScreen
:
- Open the
<activity
android:name="com.ticketmaster.authenticationsdk.internal.modernaccounts.presentation.ModernAccountsLoginScreen"
android:screenOrientation="portrait"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- YOUR SCHEME will be provided in your app settings, copy it to this location -->
<data android:scheme="psdkscheme[client scheme name]" />
</intent-filter>
</activity>
- Build and Run
Configuration
Update your API key, team name and branding colors in local.properties
Authentication SDK is configured using the settings in local.properties
.
Tickets SDK inherits it's configuration from Authentication SDK
For Modern Accounts, add the ModernAccountsLoginScreen
activity into the AndroidManifest.xml
file and add inside your scheme.
Presentation
There is one way to present the Tickets SDK:
- Generate the
EventsFragment
fromTicketsSDKClient
and add it to your view.
Basic example in TicketsSDKHostActivity.kt
Authentication
While not required, your application may want to control login-related processes directly.
- Login
- Member Info
- Logout
Tickets SDK handles Login/Logout on it's own, so there is no need for you to manually call any of these methods.
Information
While not required, your application may want to be informed of operations and use behavior with Authentication and Tickets SDKs.
Custom Modules
While not required, your application may want to use Prebuilt Modules or even create your Custom Modules to display underneath the Tickets on the Tickets Listing page.
see Modules Overview