Initialize the SDK
1 min
to begin using the sdk, you need to initialize the sdk by calling the initialize function this function verifies your account id and application id, both of which can be found in the appstorys admin dashboard call initialize function as early as possible in the app’s lifecycle, ideally during the startup process this appstorysservice initialize( app id, account id, user id, screen name, attributes, ) parameters \ app id your unique application id from the appstorys dashboard \ account id your unique account id from the appstorys dashboard \ user id this is optional if you have any user id in the app, you can pass it here \ screen home your app’s screen name \ attributes your custom attributes for the user this is also optional