Track when a user logs in to the application.
The LoggedIn event is triggered when a user successfully signs in to their app. It is also triggered on initialize of the MSDK if the user is already logged in.
- The
emailproperty is required to be non-empty otherwise this event will not be tracked. - The
phoneshould be passed in the following format:(country code)(phone number)- Example phone format:
13303332222 - If the phone is deemed not valid, the following warning log will be emitted:
Unfortunately, event hasn't been tracked since you have provided a nullable parameter or a not valid one.
- Example phone format:
Implementation
Wunderkind.getInstance().trackLoggedIn(String email, Long phone)Wunderkind.shared.trackLoggedIn(email: String, phone: Int)Wunderkind().trackLoggedInWithPhone(email: string, phone: string)Wunderkind.trackLoggedIn(email: string, phone: number)