store.getUserId()

Type Function
Return value String or nil
Revision Current Public Release (2018.3326)
Keywords Amazon, IAP, in-app purchases, getUserId
See also store.getUserData()
store.*

Overview

This function can be called any time after calling store.init() to determine the ID of the currently logged-in user. If called before store.init(), this function will return nil. If the user is unknown, it will return "unknown".

Alternatively, the user ID and additional information can be gathered via the store.getUserData() function and its userData event listener.

Syntax

store.getUserId()