SDK Reference - getUserId
React Native
Flutter
iOS
Android
.NET
The getUserId method returns the user ID of the user.
If the user isn't authenticated, an anonymous user ID (prefixed with 'a:') will be returned.
Example
var userId = await Iaphub.getUserId();
React Native
Flutter
iOS
Android
.NET
Parameters
This method does not require any parameters.
Response
StringUser ID