Wallet
Tracking an external ticketing account
To register an external user account, such as Ticketmaster, with the VenueNext SDK, add a few calls to our to our backend in the appropriate places.
Refresh user by fetching any current account in the app delegate:
application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
/// ....
VenueNext.shared.getTicketingAccount()
}
Register an identifier on successful login:
func onLoginSuccessful() {
// ...
VenueNext.shared.registerTicketingAccount(email: userEmail, externalId: externalAccountId, flow: "sdk")
}
Notify Stubs the user has logged out of external service:
func onLogout() {
VenueNext.shared.logoutTicketingAccount()
VNWallet.shared.logout()
}