SDK Reference - getUserId
React native
Flutter
Swift
Kotlin
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
Swift
Kotlin
Parameters
This method does not require any parameters.
Response
StringUser ID