This is an example integration of the Ticketmaster Ignite SDK, Tickets framework.
local.properties
with your own API key
config.consumer_key="consumer_key"
config.team_name="team_name"
config.branding_color="#color"
Android Manifest.xml
and add the following ModernAccountsLoginScreen
:<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>
Optional
If your app supports transfer tickets via SMS, you must add the following permission into your Android Manifest.xml
<uses-permission android:name="android.permission.SEND_SMS"/>
Build and Run
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.
There is one way to present the Tickets SDK:
EventsFragment
from TicketsSDKClient
and add it to your view.Basic example in TicketsSDKHostActivity.kt
While not required, your application may want to control login-related processes directly.
Tickets SDK handles Login/Logout on it's own, so there is no need for you to manually call any of these methods.
While not required, your application may want to be informed of operations and use behavior with Authentication and Tickets SDKs.
This information is provided via delegate protocols, basic examples are provided.
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.