Open kimhecan opened 3 years ago
@kimhecan Thanks for the creating an issue and putting up this suggestion! Do you feel strongly about setting the sessionId
on init()
? An alternative to that is calling setSessionId()
after calling init()
;
For example:
amplitude.init(API_KEY)
amplitude.getInstance().setSessionId(12341234);
Summary
current code is (as-is)
updated code is(to-be)
using like
Motivations
In some cases like webView, web developers need to set a session ID obtaining from app when init amplitude and request it to amplitude.