
Why is the SignIn event being triggered? Under what circumstances is the SignIn event reported?
SignIn is not a custom event that I defined. It seems that the SignIn event is reported every time setUserId is called, even when it's called during SDK initialization.
However, this SignIn is not a true sign-in in the app's user flow. How can I avoid this situation, or where should I call setUserId?
Currently, I'm integrating Amplitude into my Android App. I'm initializing Amplitude in the Application's onCreate method, after super.onCreate(), and then calling setUserId. The code is roughly as follows:
super.onCreate()<br /><br />val configuration =<br /> Configuration(<br /> apiKey = AMPLITUDE_API_KEY,<br /> context = applicationContext,<br /> autocapture =<br /> autocaptureOptions {<br /> +sessions<br /> +appLifecycles<br /> +deepLinks<br /> +screenViews<br /> }<br /> )<br />amplitude = Amplitude(configuration)<br /><br />// Update user info if available<br />if (userInfo.id.isNotBlank()) {<br /> amplitude.setUserId(userInfo.id)<br />}